Skip to content

Commit

Permalink
Switching over to use sui-merge-bot app for creating pull requests (M…
Browse files Browse the repository at this point in the history
…ystenLabs#4877)

* testing new create pr action

* debugging

* reverting

* using PAT

* Removing checkout ssh token

* adding token for checkout

* Using new gh custome token

* Fixing lost token

* fixes

* Using GH app
  • Loading branch information
ebmifa authored Sep 29, 2022
1 parent 0861475 commit 584e08a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@ jobs:
version:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: checkout code repository
uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}
fetch-depth: 0
ssh-key: ${{ secrets.SSH_CHANGESETS_PUSH }}
- uses: pnpm/[email protected]
with:
version: 7
Expand All @@ -41,4 +48,4 @@ jobs:
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit 584e08a

Please sign in to comment.