File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 69
69
- name : check if any dependency failed
70
70
run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
71
71
72
+ # Make a PR to update `rust-version` when the cron job succeeds.
73
+ # The primary reason for this is that Github stops running our cron job
74
+ # if there is no repo activity for a while, so we use these PRs to generate activity.
75
+ cron-success-pr :
76
+ name : automatic rustup PR
77
+ runs-on : ubuntu-latest
78
+ needs : [success]
79
+ if : github.event_name == 'schedule'
80
+ steps :
81
+ - name : setup bot git name and email
82
+ run : |
83
+ git config --global user.name 'The Miri Conjob Bot'
84
+ git config --global user.email '[email protected] '
85
+ - name : Create PR
86
+ run : |
87
+ # Create commit
88
+ DATE=$(date -u +%Y-%m-%d)
89
+ echo "nightly-$DATE" > rust-version
90
+ git commit -am "automatic rustup"
91
+ # Switch to a PR branch
92
+ BRANCH="rustup-$DATE"
93
+ git switch -c $BRANCH
94
+ git push -u origin $BRANCH
95
+ # Create PR
96
+ gh pr create -B master --title 'Automatic Rustup' --body ''
97
+
72
98
# Send a Zulip notification when a cron job fails
73
99
cron-fail-notify :
74
100
name : cronjob failure notification
You can’t perform that action at this time.
0 commit comments