Skip to content

Commit 8c81ef9

Browse files
authored
Merge pull request #37 from RalfJung/cron
finalize cronjob
2 parents 1cb2c71 + 4b7a168 commit 8c81ef9

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ on:
77
branches: ['master']
88
schedule:
99
- cron: '10 2 * * *' # At 02:10 UTC every day (a bit after rustup-components-history).
10-
- cron: '20,35,50 14,15 * * *' # for testing
1110

1211
jobs:
1312
test-core:
1413
runs-on: ubuntu-latest
1514
steps:
16-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1716
- name: Setup environment
1817
run: bash ./ci-setup.sh
1918
- name: Test
@@ -22,7 +21,7 @@ jobs:
2221
test-alloc:
2322
runs-on: ubuntu-latest
2423
steps:
25-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2625
- name: Setup environment
2726
run: bash ./ci-setup.sh
2827
- name: Test
@@ -31,7 +30,7 @@ jobs:
3130
test-std:
3231
runs-on: ubuntu-latest
3332
steps:
34-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3534
- name: Setup environment
3635
run: bash ./ci-setup.sh
3736
- name: Test
@@ -40,7 +39,7 @@ jobs:
4039
test-simd:
4140
runs-on: ubuntu-latest
4241
steps:
43-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4443
- name: Setup environment
4544
run: bash ./ci-setup.sh
4645
- name: Test
@@ -49,7 +48,7 @@ jobs:
4948
test-stdarch:
5049
runs-on: ubuntu-latest
5150
steps:
52-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5352
- name: Setup environment
5453
run: bash ./ci-setup.sh
5554
- name: Test
@@ -79,7 +78,7 @@ jobs:
7978
needs: [success]
8079
if: github.event_name == 'schedule'
8180
steps:
82-
- uses: actions/checkout@v3
81+
- uses: actions/checkout@v4
8382
- name: setup bot git name and email
8483
run: |
8584
git config --global user.name 'The Miri Conjob Bot'
@@ -88,6 +87,11 @@ jobs:
8887
env:
8988
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9089
run: |
90+
# If this is not the first of the month, stop here.
91+
if [[ $(date -u +%d) != "01" ]]; then
92+
echo "Only creating PR on the first of each month."
93+
exit 0
94+
fi
9195
# Create commit
9296
DATE=$(date -u +%Y-%m-%d)
9397
echo "nightly-$DATE" > rust-version

0 commit comments

Comments
 (0)