Skip to content

Scheduled tutorial tests trigger #54

Scheduled tutorial tests trigger

Scheduled tutorial tests trigger #54

name: Scheduled tutorial tests trigger
on:
# Run daily, at 00:00.
schedule:
- cron: '0 0 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tutorial-tests-trigger:
runs-on: ubuntu-latest
steps:
- name: Checkout develop branch
uses: actions/checkout@v5
with:
ref: develop
- name: Dispatch tutorial tests workflow
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "tutorial-tests.yaml",
ref: "develop"
});