Skip to content

Commit

Permalink
CI: fix missing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomognosis committed Apr 26, 2024
1 parent 76e6574 commit f25c5d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

# Permission can be added at job level or workflow level
permissions:
contents: write # This is required for actions/checkout and create release

jobs:
release:
name: Github Release
Expand All @@ -25,7 +29,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
if (!${{ github.ref_name }}) {
if (!${{ toJson(github.ref_name) }}) {
core.setFailed("RELEASE_TAG is not defined.")
return;
Expand Down

0 comments on commit f25c5d6

Please sign in to comment.