File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11# https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows/
22name : Mixed inputs
3-
43on :
54 workflow_dispatch :
65 inputs :
6+ message :
7+ required : true
78 name :
89 type : choice
910 description : Who to greet
1011 options :
1112 - monalisa
1213 - cschleiden
13- message :
14- required : true
1514 use-emoji :
1615 type : boolean
1716 description : Include 🎉🤣 emojis
1817
1918jobs :
2019 greet :
2120 runs-on : ubuntu-latest
22-
2321 steps :
2422 - name : Send greeting
25- run : echo "${{ github.event.inputs.message }} ${{ fromJSON('["", "🥳"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"
23+ run : echo "${{ toJSON(inputs.message) }} $NAME ${{ fromJSON('["", "🥳"]')[inputs.use-emoji == 'true'] }}"
24+ env :
25+ NAME : ${{ inputs.name }}
You can’t perform that action at this time.
0 commit comments