Ale*_*noy 12 github github-actions
我想手动调用工作流程并让用户选择标签值作为该工作流程的输入
on:
workflow_dispatch:
inputs:
DEPLOY_VERSION:
description: 'Tag Version (0.0.1)'
required: true
ENV:
type: choice
description: 'Environment'
required: false
options:
- dev
- prodga
default: 'dev'
jobs:
deploy:
name: "Deploying ${{ github.event.inputs.DEPLOY_VERSION }} to ${{ github.event.inputs.ENV }} by ${{ github.actor }}"
runs-on: ubuntu-latest
steps:
- run: |
echo "Deploying ${{ github.event.inputs.DEPLOY_VERSION }}!"
echo "To ${{ github.event.inputs.ENV }}!"
Run Code Online (Sandbox Code Playgroud)
有没有一种方法可以获取包含 100 个最后一个标签的列表,而不是手动输入标签的值。或者对于 type: choice 选项必须是硬编码的?
| 归档时间: |
|
| 查看次数: |
3064 次 |
| 最近记录: |