Skip to content

Commit 8b3d97a

Browse files
committed
ci: allow the PR build to re-run after repackaging
We just added a workflow that repackages the Action into `dist/` whenever Dependabot updates a dependency that requires it. However, since it is now a _workflow_ that pushes the new commit, the PR build will not trigger _another_ workflow, and as a result the PR build will not run. That's not what we want. To remedy this, we added a new environment, called `git-for-windows-ci-push`, that contains a secret token, `GIT_FOR_WINDOWS_CI_PUSH`, that can be used to push the new commit. Since that token is not bound to a GitHub workflow, the PR build will be kicked off, and all is fine and dandy again. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a4382e3 commit 8b3d97a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/npm-run-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ permissions:
1717
jobs:
1818
npm-run-package-and-push: # make sure build/ci work properly
1919
runs-on: ubuntu-latest
20+
environment: git-for-windows-ci-push
2021
steps:
2122
- uses: actions/checkout@v2
2223
with:
2324
ref: ${{ inputs.branch }}
25+
token: ${{ secrets.GIT_FOR_WINDOWS_CI_PUSH }}
2426
- run: npm ci
2527
- run: npm run build
2628
- run: npm run lint

0 commit comments

Comments
 (0)