Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,19 @@ jobs:
runs-on: ubuntu-latest

steps:
# Mint a short-lived token as the c3d-version-bump GitHub App. Bump PRs are
# then authored by the app bot, so any team member (including whoever wrote
# the commits being released) can approve them.
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.VERSION_BUMP_APP_ID }}
private-key: ${{ secrets.VERSION_BUMP_APP_KEY }}

- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.VERSION_BUMP_TOKEN }}
token: ${{ steps.app-token.outputs.token }}

- name: Determine version bump type
id: bump
Expand Down Expand Up @@ -66,7 +75,7 @@ jobs:
- name: Create version bump PR
if: steps.bump.outputs.type != 'none'
env:
GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
NEW_VERSION=${{ steps.version.outputs.new_version }}
BRANCH="chore/bump-version-to-${NEW_VERSION}"
Expand Down
Loading