Skip to content

Commit f1b6b85

Browse files
committed
CI: print message when skipping PR
1 parent 6496974 commit f1b6b85

File tree

1 file changed

+1
-1
lines changed
  • src/tools/miri/.github/workflows

1 file changed

+1
-1
lines changed

src/tools/miri/.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
- name: Push changes to a branch and create PR
122122
run: |
123123
# `git diff --exit-code` "succeeds" if the diff is empty.
124-
if git diff --exit-code HEAD^; then exit 0; fi
124+
if git diff --exit-code HEAD^; then echo "Nothing changed in rustc, skipping PR"; exit 0; fi
125125
# The diff is non-empty, create a PR.
126126
BRANCH="rustup-$(date -u +%Y-%m-%d)"
127127
git switch -c $BRANCH

0 commit comments

Comments
 (0)