Skip to content

Commit

Permalink
[MAINT] change schedule of GH workflows (nilearn#4386)
Browse files Browse the repository at this point in the history
* change schedule of GH workflows

* fix

* add workflow dispatch
  • Loading branch information
Remi-Gau authored Apr 18, 2024
1 parent 2b0f9de commit 2172d93
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ on:
branches:
- '*'
schedule:
- cron: 0 6 * * *
# Run every Monday at 8am UTC
- cron: 0 8 * * 1

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Force to use color
env:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: Codespell

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- '*'

jobs:
codespell:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/detect_test_pollution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ on:
# │ │ │ │ │
# * * * * *
schedule:
- cron: 0 0 25 * * # on the 25th of every monday
# Run first day of the month at midnight UTC
- cron: 0 0 1 * *

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/numpy2_compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
name: Numpy2 compatibility

on:

pull_request:
branches:
- '*'

push:
branches: [main]
schedule:
# Run every day at 8am UTC
- cron: 0 8 * * *
# Run every Monday at 8am UTC
- cron: 0 8 * * 1
workflow_dispatch:

# Force to use color
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/testing_minimum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ on:
# │ │ │ │ │
# * * * * *
schedule:
- cron: 0 0 1 * * # every first day of the month
# Run first day of the month at midnight UTC
- cron: 0 0 1 * *

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update_precommit_hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ on:
# │ │ │ │ │
# * * * * *
schedule:
- cron: 0 0 * * 1 # every monday
# Run first day of the month at midnight UTC
- cron: 0 0 1 * *

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down

0 comments on commit 2172d93

Please sign in to comment.