Skip to content

Commit

Permalink
Merge pull request #95 from bonsai-rx/fix-branch-protection-ci-issue
Browse files Browse the repository at this point in the history
Use deployment key in CI for manipulating Git repository
  • Loading branch information
glopesdev authored Aug 30, 2024
2 parents 1809359 + 958d5bf commit ac8d984
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
# ----------------------------------------------------------------------- Checkout
- name: Checkout
uses: actions/checkout@v4
with:
ssh-key: ${{secrets.CI_DEPLOYMENT_KEY}}

# ----------------------------------------------------------------------- Override the submodule URL
# This is to support testing release automation in forks, it is disabled for the canonical docs repo
Expand Down Expand Up @@ -84,10 +86,3 @@ jobs:
- name: Push changes
if: steps.pre-commit-check.outputs.continue == 'true'
run: git push
# The above push will not actually trigger a deployment as actions performed using temporary GitHub Actions tokens
# do not trigger events in order to avoid unintentional recursion. As such we manually trigger deployment.
- name: Trigger GitHub Pages deployment
if: steps.pre-commit-check.outputs.continue == 'true'
run: gh workflow run build.yml
env:
GH_TOKEN: ${{github.token}}

0 comments on commit ac8d984

Please sign in to comment.