-
-
Notifications
You must be signed in to change notification settings - Fork 66
33 lines (27 loc) · 866 Bytes
/
update-flake.yml
File metadata and controls
33 lines (27 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update flake.lock
on:
push:
branches: [master]
paths: [go.sum]
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
run: nix flake update
- name: Commit and push changes
env:
GH_TOKEN: ${{ github.token }}
run: |
git diff --quiet flake.lock && exit 0
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: update flake.lock (#228)"
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git
git push origin HEAD:${GITHUB_REF}