Skip to content

Commit 92afd2e

Browse files
committed
chore: add script to update flake automatically
1 parent 58b810f commit 92afd2e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ jobs:
121121
needs: changes
122122
if: needs.changes.outputs.gomod == 'true'
123123
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
124+
permissions:
125+
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
126+
contents: write
124127
steps:
125128
- name: Checkout
126129
uses: actions/checkout@v4
@@ -133,8 +136,10 @@ jobs:
133136
- name: Update Nix Flake SRI Hash
134137
run: ./scripts/update-flake.sh
135138

136-
- name: Ensure No Changes
137-
run: git diff --exit-code
139+
- uses: stefanzweifel/git-auto-commit-action@v5
140+
with:
141+
# Allows dependabot to still rebase!
142+
commit_message: "[dependabot skip] Update Nix Flake SRI Hash"
138143

139144
lint:
140145
needs: changes

0 commit comments

Comments
 (0)