File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -121,28 +121,32 @@ jobs:
121
121
needs : changes
122
122
if : needs.changes.outputs.gomod == 'true'
123
123
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
127
124
steps :
128
125
- name : Checkout
129
126
uses : actions/checkout@v4
130
127
with :
131
128
fetch-depth : 1
132
129
# See: https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
133
- token : ${{ secrets.GITHUB_TOKEN }}
130
+ token : ${{ secrets.CDRCI_GITHUB_TOKEN }}
134
131
135
132
- name : Setup Go
136
133
uses : ./.github/actions/setup-go
137
134
138
135
- name : Update Nix Flake SRI Hash
139
136
run : ./scripts/update-flake.sh
140
137
138
+ # auto update flake for dependabot
141
139
- uses : stefanzweifel/git-auto-commit-action@v5
140
+ if : github.actor == 'dependabot[bot]'
142
141
with :
143
142
# Allows dependabot to still rebase!
144
143
commit_message : " [dependabot skip] Update Nix Flake SRI Hash"
145
144
145
+ # require everyone else to update it themselves
146
+ - name : Ensure No Changes
147
+ if : github.actor != 'dependabot[bot]'
148
+ run : git diff --exit-code
149
+
146
150
lint :
147
151
needs : changes
148
152
if : needs.changes.outputs.offlinedocs-only == 'false' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
You can’t perform that action at this time.
0 commit comments