From 92afd2e18b079eea0363b993af4cf4eeba7ba133 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 29 Jul 2024 18:17:03 +0000 Subject: [PATCH] chore: add script to update flake automatically --- .github/workflows/ci.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 50a1ebe0e0175..899a09293d197 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -121,6 +121,9 @@ jobs: needs: changes if: needs.changes.outputs.gomod == 'true' 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: - name: Checkout uses: actions/checkout@v4 @@ -133,8 +136,10 @@ jobs: - name: Update Nix Flake SRI Hash run: ./scripts/update-flake.sh - - name: Ensure No Changes - run: git diff --exit-code + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + # Allows dependabot to still rebase! + commit_message: "[dependabot skip] Update Nix Flake SRI Hash" lint: needs: changes