小编use*_*852的帖子

使用输入参数安排触发器 Github Action 工作流程

我想通过两种方式运行我的 Github 工作流程:

  1. 由用户手动
  2. 计划任务

现在,一切都运行良好,直到我添加输入参数。之后,cron 作业正在运行,但不选择默认值。

这是我的 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 * * * *"
Run Code Online (Sandbox Code Playgroud)

github-actions

16
推荐指数
2
解决办法
1万
查看次数

标签 统计

github-actions ×1