From e53199b6a88808e1807fea198d5d5cde108ea739 Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Sat, 13 Jul 2024 20:18:05 +0900 Subject: [PATCH] Use vim-jp bot app when running depup CI jobs for depup 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 * https://github.com/vim-jp/vimdoc-ja-working/pull/1598 --- .github/workflows/depup.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/depup.yml b/.github/workflows/depup.yml index ab9c0f181..c2f11a8b2 100644 --- a/.github/workflows/depup.yml +++ b/.github/workflows/depup.yml @@ -26,10 +26,16 @@ jobs: version_name: REVIEWDOG_VERSION repo: reviewdog/reviewdog + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.VIM_JP_BOT_APP_ID }} + private-key: ${{ secrets.VIM_JP_BOT_PRIVATE_KEY }} + - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ steps.app-token.outputs.token }} author: 'github-actions <41898282+github-actions[bot]@users.noreply.github.com>' title: "chore(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" commit-message: "chore(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}"