Skip to content

Commit

Permalink
Create trigger_scheduled_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder authored Nov 9, 2023
1 parent 482773d commit db5ed45
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/trigger_scheduled_test.yml
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',
})

0 comments on commit db5ed45

Please sign in to comment.