From 0163693183f7a48dd59ce13ca978a0b11323706a Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:26:28 +0800 Subject: [PATCH] chore(sync): use tibdex/github-app-token (#4) #### What this PR does / why we need it: Use `tibdex/github-app-token` to create PR. --- .github/workflows/sync-trustwallet-assets.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-trustwallet-assets.yml b/.github/workflows/sync-trustwallet-assets.yml index 8f5c70864..b3a5b60b7 100644 --- a/.github/workflows/sync-trustwallet-assets.yml +++ b/.github/workflows/sync-trustwallet-assets.yml @@ -10,12 +10,12 @@ concurrency: cancel-in-progress: true permissions: - contents: write - pull-requests: write + contents: read jobs: main: runs-on: ubuntu-latest + environment: FRONTMATTER_BOT steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 @@ -36,8 +36,15 @@ jobs: - run: pnpm turbo run sync working-directory: workspace/sync-trustwallet-assets + - id: app + uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 + with: + app_id: ${{ secrets.FRONTMATTER_BOT_APP_ID }} + private_key: ${{ secrets.FRONTMATTER_BOT_PRIVATE_KEY }} + - uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 with: + token: ${{ steps.app.outputs.token }} commit-message: 'sync(assets): trustwallet/assets' title: 'sync(assets): trustwallet/assets' committer: Frontmatter Bot <${{ github.actor }}@users.noreply.github.com>