torch-mlir/.github/workflows/merge-rollpytorch.yml

25 lines
607 B
YAML
Raw Normal View History

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'
steps:
- 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
done
shell: bash