Browse Source

feat(workflow): 添加手动触发release标签工作流

- 添加 workflow_dispatch 触发器支持手动运行
- 新增 tag 输入参数用于指定创建的标签
- 设置默认标签值为 staging
- 保留原有的 push tags 自动触发功能
pull/7938/head v5.6.1
Jin Mao 4 months ago
parent
commit
629f747795
  1. 6
      .github/workflows/release-tag.yml

6
.github/workflows/release-tag.yml

@ -4,6 +4,12 @@ on:
push: push:
tags: tags:
- 'v*.*.*' # Push events to matching v*, i.e. v1.0, v20.15.10 - 'v*.*.*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:
inputs:
tag:
description: 'Tag to create'
required: true
default: 'staging'
env: env:
HUSKY: '0' HUSKY: '0'

Loading…
Cancel
Save