-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
482773d
commit db5ed45
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Trigger a scheduled test | ||
on: | ||
workflow_dispatch: # For occasional manual triggering e.g. for debugging | ||
schedule: | ||
- cron: "0 3 * * 0" # Every Sunday at 3 AM | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger testing workflow | ||
if: github.repository_owner == 'neuroinformatics-unit' # don't trigger scheduled run from forks | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.neuroinformatics-unit, | ||
repo: context.repo.python-cookiecutter, | ||
workflow_id: 'test.yml', | ||
ref: 'main', | ||
}) |