添加 .gitea/workflows/dispatch.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
This commit is contained in:
parent
7e1107291c
commit
625a97d307
33
.gitea/workflows/dispatch.yaml
Normal file
33
.gitea/workflows/dispatch.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
myChoice:
|
||||||
|
description: '请选择分支'
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
options:
|
||||||
|
- default
|
||||||
|
- dev
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
myCheck:
|
||||||
|
description: '请勾选'
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
myText:
|
||||||
|
description: '请输入构建备注'
|
||||||
|
type: environment
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: default
|
||||||
|
env:
|
||||||
|
MY_CHOICE: ${{ inputs.myChoice }}
|
||||||
|
MY_CHECK: ${{ inputs.myCheck }}
|
||||||
|
MY_TEXT: ${{ inputs.myText }}
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
echo ${MY_CHOICE};
|
||||||
|
echo ${MY_CHECK};
|
||||||
|
echo ${MY_TEXT};
|
||||||
Loading…
x
Reference in New Issue
Block a user