Skip to content

Commit

Permalink
Fix on-release.yml workflow
Browse files Browse the repository at this point in the history
* Add `contents: write` permission to fix error: "HTTP 403: Resource not
  accessible by integration"

* Change the environment variable GITHUB_TOKEN to GH_TOKEN. See:
  https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows
  • Loading branch information
rmisev committed Jul 20, 2024
1 parent 6f533b5 commit d7547a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

permissions:
contents: write

jobs:
assets:
runs-on: ubuntu-latest
Expand All @@ -16,4 +19,4 @@ jobs:
- name: Upload assets
run: gh release upload ${{ github.ref_name }} single_include/upa/*.*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d7547a5

Please sign in to comment.