Skip to content

Commit 7d63d70

Browse files
committed
Auto merge of rust-lang#2954 - RalfJung:cron, r=RalfJung
cron auto-PR: can't seem to avoid repeating the branch name...
2 parents f037471 + 352180b commit 7d63d70

File tree

1 file changed

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

1 file changed

+9
-10
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ on:
1111
- 'master'
1212
schedule:
1313
- cron: '6 6 * * *' # At 6:06 UTC every day.
14-
- cron: '22 * * * *' # Also each hour, for testing
1514

1615
env:
1716
CARGO_UNSTABLE_SPARSE_REGISTRY: 'true'
1817

18+
defaults:
19+
run:
20+
shell: bash
21+
1922
jobs:
2023
build:
2124
runs-on: ${{ matrix.os }}
@@ -60,12 +63,9 @@ jobs:
6063

6164
- name: Install rustup-toolchain-install-master
6265
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
63-
shell: bash
64-
run: |
65-
cargo install -f rustup-toolchain-install-master
66+
run: cargo install -f rustup-toolchain-install-master
6667

6768
- name: Install "master" toolchain
68-
shell: bash
6969
run: |
7070
if [[ ${{ github.event_name }} == 'schedule' ]]; then
7171
echo "Building against latest rustc git version"
@@ -80,7 +80,7 @@ jobs:
8080
cargo -V
8181
8282
- name: Test
83-
run: bash ./ci.sh
83+
run: ./ci.sh
8484

8585
style:
8686
name: style checks
@@ -163,7 +163,6 @@ jobs:
163163
- name: Install zulip-send
164164
run: pip3 install zulip
165165
- name: Send Zulip notification
166-
shell: bash
167166
env:
168167
ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }}
169168
ZULIP_API_TOKEN: ${{ secrets.ZULIP_API_TOKEN }}
@@ -204,10 +203,10 @@ jobs:
204203
./miri fmt --check || (./miri fmt && git commit -am "fmt")
205204
- name: Push changes to a branch
206205
run: |
207-
git switch -c "rustup$(date -u +%Y-%m-%d)"
208-
git push -u origin
206+
BRANCH="rustup$(date -u +%Y-%m-%d)"
207+
git switch -c $BRANCH
208+
git push -u origin $BRANCH
209209
- name: Create Pull Request
210210
run: gh pr create -B master --title 'Automatic sync from rustc' --body ''
211211
env:
212212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213-

0 commit comments

Comments
 (0)