我希望以两种方式运行我的 Github 工作流:
- 由用户手动运行
- 定时任务
现在,当我添加了输入参数后,定时任务可以正常运行,但是没有使用默认值。
以下是我的 YAML 文件:
name: WebDriverIO Automation
on:
workflow_dispatch:
inputs:
typeOfTesting:
type: choice
description: Select Type of Test
default: 'stage-test-local-All'
required: true
options:
- stage-test-local-All
- stage-test
- stage-test-local-Sanity
- prod-test
branches:
- workingBranch
- JSNew
schedule:
- cron: "*/5 * * * *"