Guide users to schedule workflows at lower load times (#18362)
This commit is contained in:
@@ -104,13 +104,13 @@ on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: '0 15 * * 0'
|
||||
- cron: '20 14 * * 1'
|
||||
```
|
||||
|
||||
This workflow scans:
|
||||
* Every push to the default branch and the protected branch
|
||||
* Every pull request to the default branch
|
||||
* The default branch at 3 P.M. every Sunday
|
||||
* The default branch every Monday at 14:20 UTC
|
||||
|
||||
### Specifying an operating system
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
- cron: '15 5 * * 3'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
|
||||
@@ -59,11 +59,11 @@ Alternatively, you could modify this workflow to upload a directory of SARIF fil
|
||||
name: "Upload SARIF"
|
||||
|
||||
# Run workflow each time code is pushed to your repository and on a schedule.
|
||||
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
|
||||
# The scheduled workflow runs every Thursday at 15:45 UTC.
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
- cron: '45 15 * * 4'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -91,11 +91,11 @@ The workflow shows an example of running the ESLint static analysis tool as a st
|
||||
name: "ESLint analysis"
|
||||
|
||||
# Run workflow each time code is pushed to your repository and on a schedule.
|
||||
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
|
||||
# The scheduled workflow runs every Wednesday at 15:45 UTC.
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
- cron: '45 15 * * 3'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user