forked from llvm/torch-mlir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Introduce workflow to auto-merge RollPyTorch updates (llvm#2196)
This patch adds a new workflow that runs when an update to the rollpytorch branch by silvasean (in whose name the RollPyTorch action runs) causes the regular CI build to complete without errors. Upon execution, this workflow currently just prints the PR number(s) of the PR created by the RollPyTorch action, but once this is working as expected, we will add the step to merge the PR changes.
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: RollPyTorch Merge | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Build and Test] | ||
types: [completed] | ||
branches: [rollpytorch] | ||
|
||
jobs: | ||
merge-pr: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.repository == 'llvm/torch-mlir' && | ||
github.event.workflow_run.actor.login == 'silvasean' && | ||
github.event.workflow_run.conclusion == 'success' | ||
env: | ||
PR_IDS: ${{ toJson(github.event.workflow_run.pull_requests.*.number) }} | ||
|
||
steps: | ||
- run: echo "PRs to approve and merge: ${PR_IDS}" |