Skip to content

Commit

Permalink
print remotes on checkout failure
Browse files Browse the repository at this point in the history
  • Loading branch information
renxida committed Jun 12, 2024
1 parent abf0087 commit 918e303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bump_torch_mlir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
run: |
cd third_party/torch-mlir
git fetch origin
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
git checkout ${{ github.event.inputs.bump_target }}
if [ "workflow_dispatch" == "workflow_dispatch" ]; then
git checkout upstream/main || { echo "Checkout failed. Available remotes:"; git remote -v; exit 1; }
else
git checkout origin/main
fi
Expand Down

0 comments on commit 918e303

Please sign in to comment.