chore: add script to update flake automatically (#14046)

This commit is contained in:
Kyle Carberry
2024-07-29 14:29:22 -04:00
committed by GitHub
parent 58b810fb0a
commit b7102b39af
+7 -2
View File
@@ -121,6 +121,9 @@ jobs:
needs: changes needs: changes
if: needs.changes.outputs.gomod == 'true' if: needs.changes.outputs.gomod == 'true'
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }} runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -133,8 +136,10 @@ jobs:
- name: Update Nix Flake SRI Hash - name: Update Nix Flake SRI Hash
run: ./scripts/update-flake.sh run: ./scripts/update-flake.sh
- name: Ensure No Changes - uses: stefanzweifel/git-auto-commit-action@v5
run: git diff --exit-code with:
# Allows dependabot to still rebase!
commit_message: "[dependabot skip] Update Nix Flake SRI Hash"
lint: lint:
needs: changes needs: changes