Skip to content

Commit

Permalink
fix: optic release action permissions (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmorrison committed May 5, 2023
1 parent 2156744 commit 528f3d2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: release

on:
workflow_dispatch:
inputs:
Expand All @@ -18,15 +17,19 @@ on:
jobs:
release:
permissions:
pull-requests: write
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: nearform-actions/optic-release-automation-action@v4
with:
github-token: ${{ secrets.github_token }}
npm-token: ${{ secrets[format('NPM_TOKEN_{0}', github.actor)] || secrets.NPM_TOKEN }}
optic-token: ${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] || secrets.OPTIC_TOKEN }}
npm-token: >-
${{ secrets[format('NPM_TOKEN_{0}', github.actor)] ||
secrets.NPM_TOKEN }}
optic-token: >-
${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] ||
secrets.OPTIC_TOKEN }}
semver: ${{ github.event.inputs.semver }}
commit-message: 'chore: release {version}'

0 comments on commit 528f3d2

Please sign in to comment.