update-flake.yml

 1name: Update flake.lock
 2
 3on:
 4  push:
 5    branches: [master]
 6    paths: [go.sum]
 7
 8jobs:
 9  update:
10    runs-on: ubuntu-latest
11    steps:
12      - uses: actions/checkout@v6
13
14      - uses: DeterminateSystems/nix-installer-action@main
15
16      - name: Update flake.lock
17        run: nix flake update
18
19      - name: Commit changes
20        run: |
21          git diff --quiet flake.lock && exit 0
22          git config user.name "github-actions[bot]"
23          git config user.email "github-actions[bot]@users.noreply.github.com"
24          git add flake.lock
25          git commit -m "chore: update flake.lock [skip ci]"
26          git push