Skip to content

Commit 91413c7

Browse files
committed
Add create-github-app-token action
1 parent cf9708c commit 91413c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/create_release_branch.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,22 @@ jobs:
2020
create-release-branch:
2121
runs-on: ubuntu-latest
2222
steps:
23+
24+
- name: Create GitHub App Token
25+
uses: actions/create-github-app-token@v2
26+
id: app-token
27+
with:
28+
app-id: ${{ vars.MONGODB_KUBERNETES_APP_ID }}
29+
private-key: ${{ secrets.MONGODB_KUBERNETES_APP_PRIVATE_KEY }}
30+
owner: ${{ github.repository_owner }}
31+
2332
- name: Checkout repository
2433
uses: actions/checkout@v4
2534
with:
2635
fetch-depth: 0
36+
token: ${{ steps.app-token.outputs.token }}
37+
ref: ${{ github.head_ref }}
38+
persist-credentials: false
2739

2840
- name: Check if release branch already exists
2941
id: check-branch

0 commit comments

Comments
 (0)