Skip to content

Commit d7f02f0

Browse files
committed
feat: add create-github-app-token step to use github app to bypass ruleset for pr only in main
1 parent a151c34 commit d7f02f0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,16 @@ jobs:
4343
needs: build
4444

4545
steps:
46+
- uses: actions/create-github-app-token@v1
47+
id: app-token
48+
with:
49+
app-id: ${{ vars.APP_ID }}
50+
private-key: ${{ secrets.PRIVATE_KEY }}
51+
4652
- name: Checkout
4753
uses: actions/checkout@v4
4854
with:
49-
token: ${{ secrets.PAT }}
55+
token: ${{ steps.app-token.outputs.token }}
5056

5157
- name: Setup
5258
uses: ./.github/actions/setup
@@ -64,5 +70,5 @@ jobs:
6470
- name: Release
6571
run: yarn release
6672
env:
67-
GITHUB_TOKEN: ${{ secrets.PAT }}
73+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
6874

0 commit comments

Comments
 (0)