Skip to content

Commit

Permalink
CI: let GitHub action create commit (llvm#2114)
Browse files Browse the repository at this point in the history
The GitHub action for creating the PR expects that either the changes
are not committed (in which case it commits them with the specified
commit message) or that the commit exists but that it is also pushed to
remote.

Prior to this patch, we created the commit but did not push it to
remote, causing failures.  This patch leaves the changes uncommitted so
that they're committed and pushed to remote as part of the PR creation.
  • Loading branch information
ashay authored May 12, 2023
1 parent 1eb18dd commit e161f25
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/RollPyTorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ jobs:
git fetch --recurse-submodules=no
git checkout main
git pull origin main
git checkout -b rollpytorch/${{ env.PT_RELEASE }}
git add pytorch-hash.txt pytorch-requirements.txt torchvision-requirements.txt lib/Dialect/Torch/Transforms/AbstractInterpLibrary.cpp include/torch-mlir/Dialect/Torch/IR/GeneratedTorchOps.td
git diff --cached --exit-code || git commit -m "update PyTorch version to ${{ env.PT_RELEASE }}"
- name: Create pull request
uses: peter-evans/create-pull-request@v5.0.1
Expand Down

0 comments on commit e161f25

Please sign in to comment.