使用 workflow_dispatch,您可以選擇要執行工作流程的分支,並設定 GitHub 在 UI 中以表單元素呈現的選用 inputs。 yml 複製 on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Test scenario tags' 除了workflow_dispatch 之外,...
1. workflow 执行时,传入参数 在执行 workflow 时, 允许在 GitHub Actions 页面输入参数,控制执行逻辑。我们可以将人工处理的逻辑,在 GitHub Actions 参数化执行,适用于持续部署场景。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 on: workflow_dispatch: inputs: logLevel: description: 'Log level' re...
Workflow dispatch inputs are specified with the same format as action inputs. For more information about the format see "Metadata syntax for GitHub Actions." on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Test scenario ...
1. workflow 执行时,传入参数 在执行 workflow 时, 允许在 GitHub Actions 页面输入参数,控制执行逻辑。我们可以将人工处理的逻辑,在 GitHub Actions参数化执行,适用于持续部署场景。 on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Te...
1. workflow 执行时,传入参数 在执行 workflow 时, 允许在 GitHub Actions 页面输入参数,控制执行逻辑。我们可以将人工处理的逻辑,在 GitHub Actions 参数化执行,适用于持续部署场景。 复制 on:workflow_dispatch:inputs:logLevel:description:'Log level'required:truedefault:'warning'tags:description:'Test scenario...
Manually running a workflow - GitHub Docsdocs.github.com/en/actions/using-workflows/manually-running-a-workflow my.yml name: Manual Trigger on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Test scenario tags' jobs: prin...
artifact 在 workflow job 之间共享数据 Github actions Artifact 可以用来存储action生产出来的产物,比如npm build生成的静态文件。当上传成功后,后续的流程就可以下载这些文件来使用。 其中一个job要上传文件到Github actions Artifact,use使用 actions/upload-artifact@v2 ...
在运行工作流程时,可以将这些输入的值传递给工作流程。 此工作流随后使用 inputs.logLevel、inputs.tags 和inputs.environment 上下文属性将值输出到日志。on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' type: choice options: - info - warning - ...
使用 workflow_dispatch,您可以選擇要執行工作流程的分支,並設定 GitHub 在 UI 中以表單元素呈現的選用 inputs。 yml 複製 on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' tags: description: 'Test scenario tags' 除了workflow_dispatch 之外,...
workflow_dispatch: inputs: text: description: Add a single item to Logseq journal type: string required: true permissions: write-all # 新增设置权限步骤,以确保可以执行git push jobs: add_to_journal: name: Add item to journal runs-on: ubuntu-latest ...