From 2b526e7d7d0661f3442b4d007a276647fc52550f Mon Sep 17 00:00:00 2001 From: Yuki Sakai Date: Sat, 29 Jun 2024 15:00:51 +0900 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e33a4a..ce34df8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,10 +87,15 @@ jobs: message: "Update README.md" add: "README.md" new_branch: ${{ env.SOURCE_BRANCH }} + - uses: actions/create-github-app-token@v1 + id: create-github-app-token + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create pull request and merge if: ${{ steps.commit-package-json.outputs.committed == 'true' || steps.commit-readme.outputs.committed == 'true'}} env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ steps.create-github-app-token.outputs.token }} run: | gh pr create --title "Update files for release" --body "Update files for release" --base main --head "${SOURCE_BRANCH}" gh pr merge "${SOURCE_BRANCH}" --auto --merge