fix: use beta tag for CI (#18) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run All Demos | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'The tag name of @midscene/' | |
required: true | |
default: 'beta' | |
push: | |
branches: | |
- main | |
jobs: | |
trigger_workflows: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger Playwright Demo | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'playwright-demo.yaml', | |
ref: context.ref, | |
inputs: { | |
tag: '${{ github.event.inputs.tag }}' | |
} | |
}); | |
- name: Trigger Puppeteer Demo | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'puppeteer-demo.yaml', | |
ref: context.ref, | |
inputs: { | |
tag: '${{ github.event.inputs.tag }}' | |
} | |
}); | |
- name: Trigger Yaml Scripts Demo | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'yaml-scripts-demo.yaml', | |
ref: context.ref, | |
inputs: { | |
tag: '${{ github.event.inputs.tag }}' | |
} | |
}); |