Skip to content

Commit 76fbd4b

Browse files
committed
Use vim-jp bot app when running depup
CI jobs were not automatically executed because we used GITHUB_TOKEN. To work around the restriction of GITHUB_TOKEN, use action/create-github-app-token to generate a token. See: * https://zenn.dev/suzutan/articles/how-to-use-github-apps-token-in-github-actions * https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions * https://github.com/marketplace/actions/create-github-app-token
1 parent 4eae6c0 commit 76fbd4b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/depup.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ jobs:
2323
version_name: REVIEWDOG_VERSION
2424
repo: reviewdog/reviewdog
2525

26+
- uses: actions/create-github-app-token@v1
27+
id: app-token
28+
with:
29+
app-id: ${{ vars.VIM_JP_BOT_APP_ID }}
30+
private-key: ${{ secrets.VIM_JP_BOT_PRIVATE_KEY }}
31+
2632
- name: Create Pull Request
2733
uses: peter-evans/create-pull-request@v6
2834
with:
29-
token: ${{ secrets.GITHUB_TOKEN }}
35+
token: ${{ steps.app-token.outputs.token }}
3036
author: 'github-actions <41898282+github-actions[bot]@users.noreply.github.com>'
3137
title: "chore(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}"
3238
commit-message: "chore(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}"

0 commit comments

Comments
 (0)