Skip to content

Commit 71f150e

Browse files
author
Sarah Edwards
authored
Guide users to schedule workflows at lower load times (#18362)
1 parent 94362e6 commit 71f150e

9 files changed

Lines changed: 20 additions & 20 deletions

File tree

content/actions/guides/scheduling-issue-creation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In the tutorial, you will first make a workflow file that uses the [`imjohnbo/is
3434
name: Weekly Team Sync
3535
on:
3636
schedule:
37-
- cron: 0 07 * * 1
37+
- cron: 20 07 * * 1
3838
3939
jobs:
4040
create_issue:
@@ -66,7 +66,7 @@ In the tutorial, you will first make a workflow file that uses the [`imjohnbo/is
6666
```
6767
{% endraw %}
6868
4. Customize the parameters in your workflow file:
69-
- Change the value for `on.schedule` to dictate when you want this workflow to run. In the example above, the workflow will run every Monday at 7:00 UTC. For more information about scheduled workflows, see "[Scheduled events](/actions/reference/events-that-trigger-workflows#scheduled-events)."
69+
- Change the value for `on.schedule` to dictate when you want this workflow to run. In the example above, the workflow will run every Monday at 7:20 UTC. For more information about scheduled workflows, see "[Scheduled events](/actions/reference/events-that-trigger-workflows#scheduled-events)."
7070
- Change the value for `assignees` to the list of {% data variables.product.prodname_dotcom %} usernames that you want to assign to the issue.
7171
- Change the value for `labels` to the list of labels that you want to apply to the issue.
7272
- Change the value for `title` to the title that you want the issue to have.
@@ -77,7 +77,7 @@ In the tutorial, you will first make a workflow file that uses the [`imjohnbo/is
7777
7878
### Expected results
7979
80-
Based on the `schedule` parameter (for example, every Monday at 7:00 UTC), your workflow will create a new issue with the assignees, labels, title, and body that you specified. If you set `pinned` to `true`, the workflow will pin the issue to your repository. If you set `close-previous` to true, the workflow will close the most recent issue with matching labels.
80+
Based on the `schedule` parameter (for example, every Monday at 7:20 UTC), your workflow will create a new issue with the assignees, labels, title, and body that you specified. If you set `pinned` to `true`, the workflow will pin the issue to your repository. If you set `close-previous` to true, the workflow will close the most recent issue with matching labels.
8181
8282
{% data reusables.actions.schedule-delay %}
8383

content/code-security/secure-coding/configuring-code-scanning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ on:
104104
pull_request:
105105
branches: [main]
106106
schedule:
107-
- cron: '0 15 * * 0'
107+
- cron: '20 14 * * 1'
108108
```
109109

110110
This workflow scans:
111111
* Every push to the default branch and the protected branch
112112
* Every pull request to the default branch
113-
* The default branch at 3 P.M. every Sunday
113+
* The default branch every Monday at 14:20 UTC
114114

115115
### Specifying an operating system
116116

content/code-security/secure-coding/running-codeql-code-scanning-in-a-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on:
4242
pull_request:
4343
branches: [main]
4444
schedule:
45-
- cron: '0 0 * * 0'
45+
- cron: '15 5 * * 3'
4646

4747
jobs:
4848
analyze:

content/code-security/secure-coding/uploading-a-sarif-file-to-github.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ Alternatively, you could modify this workflow to upload a directory of SARIF fil
5959
name: "Upload SARIF"
6060

6161
# Run workflow each time code is pushed to your repository and on a schedule.
62-
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
62+
# The scheduled workflow runs every Thursday at 15:45 UTC.
6363
on:
6464
push:
6565
schedule:
66-
- cron: '0 0 * * 0'
66+
- cron: '45 15 * * 4'
6767

6868
jobs:
6969
build:
@@ -91,11 +91,11 @@ The workflow shows an example of running the ESLint static analysis tool as a st
9191
name: "ESLint analysis"
9292
9393
# Run workflow each time code is pushed to your repository and on a schedule.
94-
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
94+
# The scheduled workflow runs every Wednesday at 15:45 UTC.
9595
on:
9696
push:
9797
schedule:
98-
- cron: '0 0 * * 0'
98+
- cron: '45 15 * * 3'
9999
100100
jobs:
101101
build:

content/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ on:
100100
pull_request:
101101
branches: [main]
102102
schedule:
103-
- cron: '0 15 * * 0'
103+
- cron: '40 7 * * 2'
104104
```
105105

106106
This workflow scans:
107107
* Every push to the default branch and the protected branch
108108
* Every pull request to the default branch
109-
* The default branch at 3 P.M. every Sunday
109+
* The default branch every Tuesday at 7:40 UTC
110110

111111
### Specifying an operating system
112112

content/github/finding-security-vulnerabilities-and-errors-in-your-code/running-codeql-code-scanning-in-a-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ on:
3838
pull_request:
3939
branches: [main]
4040
schedule:
41-
- cron: '0 0 * * 0'
41+
- cron: '45 15 * * 2'
4242

4343
jobs:
4444
analyze:

content/github/finding-security-vulnerabilities-and-errors-in-your-code/uploading-a-sarif-file-to-github.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ Alternatively, you could modify this workflow to upload a directory of SARIF fil
5454
name: "Upload SARIF"
5555

5656
# Run workflow each time code is pushed to your repository and on a schedule.
57-
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
57+
# The scheduled workflow runs every Friday at 15:45 UTC.
5858
on:
5959
push:
6060
schedule:
61-
- cron: '0 0 * * 0'
61+
- cron: '45 15 * * 5'
6262

6363
jobs:
6464
build:
@@ -86,11 +86,11 @@ The workflow shows an example of running the ESLint static analysis tool as a st
8686
name: "ESLint analysis"
8787
8888
# Run workflow each time code is pushed to your repository and on a schedule.
89-
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
89+
# The scheduled workflow runs every Monday at 15:45 UTC.
9090
on:
9191
push:
9292
schedule:
93-
- cron: '0 0 * * 0'
93+
- cron: '45 15 * * 1'
9494
9595
jobs:
9696
build:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% note %}
22

3-
Note: The `schedule` event can be delayed during periods of high loads of {% data variables.product.prodname_actions %} workflow runs.
3+
Note: The `schedule` event can be delayed during periods of high loads of {% data variables.product.prodname_actions %} workflow runs. High load times include the start of every hour. To decrease the chance of delay, schedule your workflow to run at a different time of the hour.
44

55
{% endnote %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
You can schedule a workflow to run at specific UTC times using [POSIX cron syntax](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.
22

3-
This example triggers the workflow every 15 minutes:
3+
This example triggers the workflow every day at 5:30 and 17:30 UTC:
44

55
```yaml
66
on:
77
schedule:
88
# * is a special character in YAML so you have to quote this string
9-
- cron: '*/15 * * * *'
9+
- cron: '*/30 5,17 * * *'
1010

1111
```

0 commit comments

Comments
 (0)