1name: Update flake.lock
2
3on:
4 push:
5 branches: [master]
6 paths: [go.sum]
7 workflow_dispatch:
8
9jobs:
10 update:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v6
14
15 - uses: DeterminateSystems/nix-installer-action@main
16
17 - name: Update flake.lock
18 run: nix flake update
19
20 - name: Commit changes
21 run: |
22
23 - name: Configure Git
24 run: |
25 git config user.name "github-actions[bot]"
26 git config user.email "github-actions[bot]@users.noreply.github.com"
27
28 - name: Push changes
29 env:
30 GH_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
31 run: |
32 git diff --quiet flake.lock && exit 0`
33 git add .
34 git commit -m "chore: update flake.lock (#228)"
35 git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git
36 git push origin HEAD:${GITHUB_REF}