From a7b0396b17be3418e351ed4bb12cd4cf0668c8d4 Mon Sep 17 00:00:00 2001 From: uwx Date: Fri, 17 Nov 2023 04:30:44 -0300 Subject: [PATCH] [skip-ci] Remove need for R2R to use a GitHub PAT for creating releases (#87) * Remove need for R2R to use a GitHub PAT for creating releases --- .github/workflows/r2r.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/r2r.yml b/.github/workflows/r2r.yml index 8284c1dd..09d24c67 100644 --- a/.github/workflows/r2r.yml +++ b/.github/workflows/r2r.yml @@ -28,6 +28,9 @@ jobs: runs-on: windows-latest + permissions: + contents: write # In order to be able to push releases + steps: - uses: actions/checkout@v3 - name: Setup .NET @@ -116,6 +119,6 @@ jobs: # An optional tag for the release. If this is omitted the git ref will be used (if it is a tag). tag: prerelease-r2r-${{steps.sha.outputs.substring}}-${{github.run_id}} # optional, default is # The Github token. - token: ${{secrets.RELEASE_TOKEN}} # optional, default is ${{ github.token }} + token: ${{ github.token }} # When allowUpdates is enabled, this will fail the action if the release it is updating is not a draft or a prerelease. # updateOnlyUnreleased: # optional, default is false