We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bfeb00 commit b8081e0Copy full SHA for b8081e0
1 file changed
.github/workflows/mixed-inputs.yml
@@ -1,25 +1,25 @@
1
# https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows/
2
name: Mixed inputs
3
-
4
on:
5
workflow_dispatch:
6
inputs:
+ message:
7
+ required: true
8
name:
9
type: choice
10
description: Who to greet
11
options:
12
- monalisa
13
- cschleiden
- message:
14
- required: true
15
use-emoji:
16
type: boolean
17
description: Include 🎉🤣 emojis
18
19
jobs:
20
greet:
21
runs-on: ubuntu-latest
22
23
steps:
24
- name: Send greeting
25
- run: echo "${{ github.event.inputs.message }} ${{ fromJSON('["", "🥳"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"
+ run: echo "${{ toJSON(inputs.message) }} $NAME ${{ fromJSON('["", "🥳"]')[inputs.use-emoji == 'true'] }}"
+ env:
+ NAME: ${{ inputs.name }}
0 commit comments