Skip to content

Scheduled code tests trigger #171

Scheduled code tests trigger

Scheduled code tests trigger #171

Workflow file for this run

name: Scheduled code 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:
code-tests-trigger:
runs-on: ubuntu-latest
steps:
- name: Checkout develop branch
uses: actions/checkout@v5
with:
ref: develop
- name: Dispatch code 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: "test.yaml",
ref: "develop"
});