diff --git a/.github/workflows/release-v2.yml b/.github/workflows/release-v2.yml index a19dec6..4559830 100644 --- a/.github/workflows/release-v2.yml +++ b/.github/workflows/release-v2.yml @@ -9,7 +9,7 @@ on: type: string permissions: - contents: read + contents: write jobs: prep: @@ -17,8 +17,6 @@ jobs: with: version: ${{ inputs.version }} target_branch: v2 - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} bump: needs: prep @@ -27,7 +25,7 @@ jobs: - uses: actions/checkout@v5 with: ref: ${{ needs.prep.outputs.release_branch }} - token: ${{ secrets.GH_PUSH_TOKEN || github.token }} + token: ${{ github.token }} - uses: ./.github/actions/bump-version with: @@ -39,5 +37,3 @@ jobs: with: release_branch: ${{ needs.prep.outputs.release_branch }} target_branch: v2 - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f7b239..44bd3e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: type: string permissions: - contents: read + contents: write jobs: prep: @@ -17,8 +17,6 @@ jobs: with: version: ${{ inputs.version }} target_branch: main - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} bump: needs: prep @@ -27,7 +25,7 @@ jobs: - uses: actions/checkout@v5 with: ref: ${{ needs.prep.outputs.release_branch }} - token: ${{ secrets.GH_PUSH_TOKEN || github.token }} + token: ${{ github.token }} - uses: ./.github/actions/bump-version with: @@ -39,5 +37,3 @@ jobs: with: release_branch: ${{ needs.prep.outputs.release_branch }} target_branch: main - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}