Skip to content

Commit

Permalink
ci: πŸ’š Fix bump task permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
hmathieu31 committed Apr 13, 2024
1 parent a88b2e1 commit 3ceafd8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/bumpversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@ on:

jobs:
bump-version:
permissions:
contents: write
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.VERSIONBUMPER_ID }}
private-key: ${{ secrets.VERSIONBUMPER_SECRET }}

- name: Check out
uses: actions/checkout@v3
with:
token: "${{ secrets.GITHUB_TOKEN }}"
token: "${{ steps.app-token.outputs.token }}"
fetch-depth: 0

- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ steps.app-token.outputs.token }}

0 comments on commit 3ceafd8

Please sign in to comment.