Skip to content

Commit

Permalink
Sync only once a week (#3494)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Jan 31, 2023
1 parent 30aa8e9 commit 653dce8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- reopened
- synchronize
schedule:
- cron: '0 4 * * *'
- cron: '0 4 * * *' # run every day at 04:00 UTC

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '36 6 * * 4'
- cron: '36 6 * * 4' # run every Thursday at 06:36 UTC

concurrency:
group: ${{ github.ref_name }}-codeql
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '43 20 * * 0'
- cron: '43 20 * * 0' # run every Sunday at 20:43 UTC
push:
branches: [ "main" ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
- cron: '30 1 * * *' # run every day at 01:30 UTC

permissions: # added using https://github.com/step-security/secure-workflows
contents: read
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Sync
name: Sync labels

on:
workflow_run:
branches: main
workflows:
- "CI"
types:
- completed
schedule:
- cron: '8 0 * * 1' # run every Monday at 00:08 UTC
workflow_dispatch:

concurrency:
group: ${{ github.ref_name }}-sync
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Docker Images

on:
schedule:
- cron: '0 1 * * *'
- cron: '0 1 * * *' # run every day at 01:00 UTC
workflow_dispatch:

defaults:
Expand Down

0 comments on commit 653dce8

Please sign in to comment.