Files
nix-fleet/.github/workflows/update.yml

24 lines
642 B
YAML

name: Update flake inputs
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: Update flake inputs
run: nix flake update
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add flake.lock
git commit -m "flake: update inputs" || echo "No changes to commit"
git push