Skip to content

Scheduled code tests trigger #46

Scheduled code tests trigger

Scheduled code tests trigger #46

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:
permissions:
contents: read
jobs:
code-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 code 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: "test.yml",
ref: "develop"
});