Skip to content

Commit

Permalink
ci: add workflow_dispatch to scheduled workflows (#16862)
Browse files Browse the repository at this point in the history
This will allow anyone with write access to [trigger these workflows manually](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/manually-running-a-workflow) without waiting for the scheduled time. Useful for re-running if something was broken and for testing.

I also added / updated comments giving the cron schedules in words (using https://crontab.guru).

[Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Technical.20Debt.20Counters/near/470626800)
  • Loading branch information
bryangingechen committed Sep 24, 2024
1 parent 7fdf3ba commit 7252e9d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dependent-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Dependent Issues
on:
schedule:
- cron: '*/15 * * * *' # run every 15 minutes
workflow_dispatch:

jobs:
cancel:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lean4checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: lean4checker Workflow
on:
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day
workflow_dispatch:

jobs:
check-lean4checker:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/merge_conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Merge conflicts
on:
schedule:
- cron: '*/15 * * * *' # run every 15 minutes
workflow_dispatch:

jobs:
main:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_bump_toolchain.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Bump lean-toolchain on nightly-testing

on:
workflow_dispatch:
schedule:
- cron: '0 10/3 * * *' # Run every three hours, starting at 11AM CET/2AM PT.
workflow_dispatch:

jobs:
update-toolchain:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nightly_merge_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ name: Merge master to nightly

on:
schedule:
- cron: '30 */3 * * *' # 8AM CET/11PM PT
- cron: '30 */3 * * *' # At minute 30 past every 3rd hour.
workflow_dispatch:

jobs:
merge-to-nightly:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nolints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: update nolints

on:
schedule:
- cron: "0 0 * * 0"
- cron: "0 0 * * 0" # At 00:00 UTC on Sunday.
workflow_dispatch:

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/technical_debt_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Weekly Technical Debt Counters

on:
schedule:
- cron: '0 4 * * 1' # Run at 04:00 every Monday
- cron: '0 4 * * 1' # Run at 04:00 UTC every Monday
workflow_dispatch:

jobs:
run-script:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Update Mathlib Dependencies
on:
schedule:
- cron: '0 * * * *' # This will run every hour
workflow_dispatch:

jobs:
update-dependencies:
Expand Down

0 comments on commit 7252e9d

Please sign in to comment.