Skip to content

Commit b7102b3

Browse files
authored
chore: add script to update flake automatically (#14046)
1 parent 58b810f commit b7102b3

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy