Skip to content

Commit 5fa7403

Browse files
committed
cronjob auto-PR: make sure we are on a branch
1 parent d061edd commit 5fa7403

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 'master'
1212
schedule:
1313
- cron: '6 6 * * *' # At 6:06 UTC every day.
14+
- cron: '42 * * * *' # Also each hour, for testing
1415

1516
env:
1617
CARGO_UNSTABLE_SPARSE_REGISTRY: 'true'
@@ -196,7 +197,10 @@ jobs:
196197
git config --global user.name 'The Miri Conjob Bot'
197198
git config --global user.email '[email protected]'
198199
- name: get changes from rustc
199-
run: ./miri rustc-pull
200+
run: |
201+
git status # just to see more of what is happening
202+
git checkout master # by default we are not on a branch
203+
./miri rustc-pull
200204
- name: Install rustup-toolchain-install-master
201205
run: cargo install -f rustup-toolchain-install-master
202206
- name: format changes (if any)

src/tools/miri/miri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ rustc-pull)
124124
git commit rust-version -m "Preparing for merge from rustc" || (echo "FAILED to commit rust-version file, something went wrong"; exit 1)
125125
# Fetch given rustc commit and note down which one that was
126126
git fetch http://localhost:8000/rust-lang/rust.git@$FETCH_COMMIT$JOSH_FILTER.git || (echo "FAILED to fetch new commits, something went wrong"; exit 1)
127-
git merge FETCH_HEAD --no-ff -m "Merge from rustc" || (echo "FAILED to merge new commits, something went wrong"; exit 1)
127+
git merge FETCH_HEAD --no-ff -m "Merge from rustc" || (echo "FAILED to merge new commits ($(git rev-parse FETCH_HEAD)), something went wrong"; exit 1)
128128
exit 0
129129
;;
130130
rustc-push)

0 commit comments

Comments
 (0)