Skip to content

Commit

Permalink
Workaround to not use GITHUB_TOKEN checkout code in automerge (NVIDIA…
Browse files Browse the repository at this point in the history
…#647)

Signed-off-by: Peixin Li <pxli@nyu.edu>

Signed-off-by: Peixin Li <pxli@nyu.edu>
  • Loading branch information
pxLi authored Oct 17, 2022
1 parent 5920ca3 commit 5ac31c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
with:
ref: ${{ env.HEAD }} # force to fetch from latest upstream instead of PR ref
token: ${{ secrets.AUTOMERGE_TOKEN }} # workaround auto-merge token to avoid GITHUB_TOKEN insufficient permission

- name: push intermediate branch for auto-merge
run: |
Expand Down

0 comments on commit 5ac31c4

Please sign in to comment.