File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
schedule :
7
7
# Run weekly
8
8
- cron : ' 0 0 * * Sun'
9
+ # Re-bump deps every 4 hours
10
+ - cron : ' 0 */4 * * *'
9
11
workflow_dispatch :
10
12
# Needed so we can run it manually
11
13
permissions :
@@ -135,8 +137,8 @@ jobs:
135
137
gh pr edit cargo_update --title "${PR_TITLE}" --body-file body.md --repo $GITHUB_REPOSITORY
136
138
137
139
- name : open new pull request
138
- # Only run if there wasn't an existing PR
139
- if : steps.edit.outcome != 'success'
140
+ # Only run if there wasn't an existing PR and if this is the weekly run
141
+ if : steps.edit.outcome != 'success' && github.event.schedule == '0 0 * * Sun'
140
142
env :
141
143
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
142
144
run : gh pr create --title "${PR_TITLE}" --body-file body.md --repo $GITHUB_REPOSITORY
You can’t perform that action at this time.
0 commit comments