Skip to content

Commit

Permalink
CI: Merge RollPyTorch PR upon successful completion (llvm#2218)
Browse files Browse the repository at this point in the history
This patch removes the mock commands, so that once the Build And Test
workflow has successfully completed on the RollPyTorch action, the PR is
merged and the branch is deleted.
  • Loading branch information
ashay authored Jun 7, 2023
1 parent 44d5cf6 commit 3c1a796
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/merge-rollpytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
- run: |
- name: Merge RollPyTorch PR
run: |
for pr_id in ${{ join(github.event.workflow_run.pull_requests.*.number, ' ') }}
do
echo "[mock] Merging PR: $pr_id"
echo gh pr merge $pr_id --delete-branch --squash
echo "Merging PR: $pr_id"
gh pr merge $pr_id --delete-branch --squash
done
shell: bash

0 comments on commit 3c1a796

Please sign in to comment.