mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: add script to update flake automatically (#14046)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user