Skip to content

Commit

Permalink
CI: Checkout repo so that gh knows where to look for the PR (llvm#2223)
Browse files Browse the repository at this point in the history
Without this patch, the gh command (for merging the PR) doesn't know
which repo we're referring to.
  • Loading branch information
ashay authored Jun 10, 2023
1 parent 45c0bd7 commit c202cb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/merge-rollpytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
# Fetch the repo first so that the gh command knows where to look for the PR
- name: Fetch Repo
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

- name: Merge RollPyTorch PR
run: |
for pr_id in ${{ join(github.event.workflow_run.pull_requests.*.number, ' ') }}
Expand Down

0 comments on commit c202cb5

Please sign in to comment.