From d3c012b31055d0bd8a0259d5eccb8121f0b52c59 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Tue, 16 Jan 2024 18:24:31 -0800 Subject: [PATCH] ci: allow GHA to bypass protection rules on release Permit GitHub Actions to bypass repository branch protection rules to enable Python Semantic Release to commit release-related changes back to the main branch. --- .github/workflows/ci-cd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index dae4132..c4675f4 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 @@ -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