Skip to content

Commit

Permalink
ci: allow GHA to bypass protection rules on release
Browse files Browse the repository at this point in the history
Permit GitHub Actions to bypass repository branch protection rules to
enable Python Semantic Release to commit release-related changes back
to the main branch.
  • Loading branch information
clnsmth authored Jan 17, 2024
1 parent 49c986f commit d3c012b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}

- name: Install poetry
uses: snok/install-poetry@v1
Expand All @@ -88,8 +89,6 @@ jobs:
run: poetry install

- name: Use Python Semantic Release to prepare release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
Expand Down

0 comments on commit d3c012b

Please sign in to comment.