Skip to content

Commit

Permalink
chore(sync): use tibdex/github-app-token (#4)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

Use `tibdex/github-app-token` to create PR.
  • Loading branch information
fuxingloh authored Nov 7, 2023
1 parent 012648b commit 0163693
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/sync-trustwallet-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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>
Expand Down

0 comments on commit 0163693

Please sign in to comment.