Skip to content

Scheduled tutorial tests trigger #44

Scheduled tutorial tests trigger

Scheduled tutorial tests trigger #44

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:
permissions:
contents: read
jobs:
tutorial-tests-trigger:
runs-on: ubuntu-latest
steps:
- name: Checkout develop branch
uses: actions/checkout@v5
with:
ref: develop
- name: Setup easyscience[bot]
id: bot
uses: ./.github/actions/setup-easyscience-bot
with:
app-id: ${{ vars.EASYSCIENCE_APP_ID }}
private-key: ${{ secrets.EASYSCIENCE_APP_KEY }}
- name: Dispatch tutorial tests workflow
uses: ./.github/actions/github-script
with:
github-token: ${{ steps.bot.outputs.token }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "tutorial-tests.yml",
ref: "develop"
});