Skip to content

Commit 0bf13a4

Browse files
committed
Auto merge of rust-lang#2952 - RalfJung:cron, r=RalfJung
cronjob auto-PR: try to fix setting the remote branch
2 parents 7d12d2f + 32168b7 commit 0bf13a4

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +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
14+
- cron: '12 * * * *' # Also each hour, for testing
1515

1616
env:
1717
CARGO_UNSTABLE_SPARSE_REGISTRY: 'true'
@@ -203,9 +203,7 @@ jobs:
203203
./miri toolchain
204204
./miri fmt --check || (./miri fmt && git commit -am "fmt")
205205
- name: Push changes to a branch
206-
run: |
207-
git switch -c "rustup$(date -u +%Y-%m-%d)"
208-
git push -u
206+
run: git push -u origin HEAD:"rustup$(date -u +%Y-%m-%d)"
209207
- name: Create Pull Request
210208
run: gh pr create -B master --title 'Automatic sync from rustc' --body ''
211209
env:

0 commit comments

Comments
 (0)