Skip to content

Commit

Permalink
Add permissions to push to GH Package
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sim <ivan.sim@kasten.io>
  • Loading branch information
ihcsim committed Apr 10, 2022
1 parent 5b27487 commit 44ad1ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- master
- fix-readme
pull_request:
branches:
- master
Expand Down Expand Up @@ -74,7 +75,10 @@ jobs:
release:
runs-on: ubuntu-20.04
needs: [test, build]
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
permissions:
contents: read
packages: write
if: github.ref_name == 'master' || github.ref_name == 'fix-readme' || startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 44ad1ca

Please sign in to comment.