Skip to content

Commit 95896c2

Browse files
author
Richard P. Field III
committed
ci: Use the rpf3 bot to commit version changes
This commit updates the release action configuration to use a personal GitHub App to checkout and commit changes to the repository. This App has access to the repository's protected branches through a bypass on the protection rule.
1 parent 43c11b7 commit 95896c2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Package Release
33
on:
44
push:
55
branches:
6-
- main
6+
- action
77

88
jobs:
99
npm-package:
@@ -12,10 +12,18 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15+
- name: Create bot access token
16+
id: app-token
17+
uses: actions/create-github-app-token@v1
18+
with:
19+
app-id: ${{ vars.RPF3_BOT_APP_ID }}
20+
private-key: ${{ secrets.RPF3_BOT_PRIVATE_KEY }}
21+
1522
- name: Checkout the repository
1623
uses: actions/checkout@v3
1724
with:
1825
fetch-depth: 0
26+
token: ${{ steps.app-token.outputs.token }}
1927

2028
- name: Install GitVersion
2129
uses: gittools/actions/gitversion/setup@v0

0 commit comments

Comments
 (0)