Skip to content

Commit 6a086d5

Browse files
authored
ci: use GitHub App for automatic-rebase (#11)
Signed-off-by: Kenji Miyake <[email protected]>
1 parent 8a9b1ee commit 6a086d5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/automatic-rebase.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ jobs:
1010
if: ${{ github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') }}
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Generate token
14+
id: generate-token
15+
uses: tibdex/github-app-token@v1
16+
with:
17+
app_id: ${{ secrets.APP_ID }}
18+
private_key: ${{ secrets.PRIVATE_KEY }}
19+
1320
- name: Checkout repository
1421
uses: actions/checkout@v2
1522
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
1723
fetch-depth: 0
1824

1925
- name: Automatic rebase
2026
uses: cirrus-actions/[email protected]
2127
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)