From da6af24e82ac96359013c5b30cdc227e1d79c2d3 Mon Sep 17 00:00:00 2001 From: jeremy-bepoix <145460090+jeremy-bepoix@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:28:36 +0200 Subject: [PATCH] fix: protected branch --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a091f74..d46dbf7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,12 +17,13 @@ jobs: steps: - uses: actions/checkout@v4 with: + GH_TOKEN: ${{ secrets.GH_TOKEN }} fetch-depth: 0 - persist-credentials: false - name: Python Semantic Release id: release uses: python-semantic-release/python-semantic-release@master with: + GH_TOKEN: ${{ secrets.GH_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -37,6 +38,7 @@ jobs: if: steps.release.outputs.released == 'true' uses: python-semantic-release/upload-to-gh-release@main with: + GH_TOKEN: ${{ secrets.GH_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.release.outputs.tag }}