Skip to content

Commit

Permalink
fix(ci): Update config for changelog-action, add permissions to token
Browse files Browse the repository at this point in the history
Signed-off-by: macinsight <[email protected]>
  • Loading branch information
macinsight committed Nov 28, 2023
1 parent 4a0fbad commit 0e623f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}

- name: Get previous tag
id: previousTag
Expand All @@ -25,7 +28,7 @@ jobs:
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ github.token }}
tag: ${{ github.ref_name }}
writeToFile: true
excludeTypes: build,other,style
Expand Down

0 comments on commit 0e623f3

Please sign in to comment.