-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use latest version to run yaml scripts (#17)
* feat: support beta tag version for github action * fix: debug workflow * feat: update puppeteer demo * feat: add action for 'run-all' * chore: use beta tag as default ci choice
- Loading branch information
1 parent
94db70d
commit 406cb7b
Showing
6 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
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 }}' | ||
} | ||
}); |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,6 @@ | |
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@midscene/cli": "beta" | ||
"@midscene/cli": "latest" | ||
} | ||
} |