Skip to content

Commit

Permalink
Use GH App token to trigger CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
na4zagin3 authored Oct 23, 2023
1 parent 77478aa commit 640212e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/automatic-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ jobs:
github.event.comment.author_association == 'COLLABORATOR'
)
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.SG_REPO_GH_APP_ID }}
private_key: ${{ secrets.SG_REPO_GH_APP_PRIV_KEY }}
- name: Checkout the latest code
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.generate-token.outputs.token }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
with:
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit 640212e

Please sign in to comment.