|
7 | 7 | branches: ['master']
|
8 | 8 | schedule:
|
9 | 9 | - cron: '10 2 * * *' # At 02:10 UTC every day (a bit after rustup-components-history).
|
10 |
| - - cron: '20,35,50 14,15 * * *' # for testing |
11 | 10 |
|
12 | 11 | jobs:
|
13 | 12 | test-core:
|
14 | 13 | runs-on: ubuntu-latest
|
15 | 14 | steps:
|
16 |
| - - uses: actions/checkout@v3 |
| 15 | + - uses: actions/checkout@v4 |
17 | 16 | - name: Setup environment
|
18 | 17 | run: bash ./ci-setup.sh
|
19 | 18 | - name: Test
|
|
22 | 21 | test-alloc:
|
23 | 22 | runs-on: ubuntu-latest
|
24 | 23 | steps:
|
25 |
| - - uses: actions/checkout@v3 |
| 24 | + - uses: actions/checkout@v4 |
26 | 25 | - name: Setup environment
|
27 | 26 | run: bash ./ci-setup.sh
|
28 | 27 | - name: Test
|
|
31 | 30 | test-std:
|
32 | 31 | runs-on: ubuntu-latest
|
33 | 32 | steps:
|
34 |
| - - uses: actions/checkout@v3 |
| 33 | + - uses: actions/checkout@v4 |
35 | 34 | - name: Setup environment
|
36 | 35 | run: bash ./ci-setup.sh
|
37 | 36 | - name: Test
|
|
40 | 39 | test-simd:
|
41 | 40 | runs-on: ubuntu-latest
|
42 | 41 | steps:
|
43 |
| - - uses: actions/checkout@v3 |
| 42 | + - uses: actions/checkout@v4 |
44 | 43 | - name: Setup environment
|
45 | 44 | run: bash ./ci-setup.sh
|
46 | 45 | - name: Test
|
|
49 | 48 | test-stdarch:
|
50 | 49 | runs-on: ubuntu-latest
|
51 | 50 | steps:
|
52 |
| - - uses: actions/checkout@v3 |
| 51 | + - uses: actions/checkout@v4 |
53 | 52 | - name: Setup environment
|
54 | 53 | run: bash ./ci-setup.sh
|
55 | 54 | - name: Test
|
|
79 | 78 | needs: [success]
|
80 | 79 | if: github.event_name == 'schedule'
|
81 | 80 | steps:
|
82 |
| - - uses: actions/checkout@v3 |
| 81 | + - uses: actions/checkout@v4 |
83 | 82 | - name: setup bot git name and email
|
84 | 83 | run: |
|
85 | 84 | git config --global user.name 'The Miri Conjob Bot'
|
|
88 | 87 | env:
|
89 | 88 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
90 | 89 | 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 |
91 | 95 | # Create commit
|
92 | 96 | DATE=$(date -u +%Y-%m-%d)
|
93 | 97 | echo "nightly-$DATE" > rust-version
|
|
0 commit comments