-
-
Notifications
You must be signed in to change notification settings - Fork 3
26 lines (25 loc) · 664 Bytes
/
mixed-inputs.yml
File metadata and controls
26 lines (25 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows/
name: Mixed inputs
on:
workflow_dispatch:
inputs:
message:
required: true
name:
type: choice
description: Who to greet
options:
- monalisa
- cschleiden
use-emoji:
type: boolean
default: false
description: Include 🎉🤣 emojis
jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Send greeting
run: echo $MESSAGE ${{ toJSON(inputs.name) }} ${{ fromJSON('{"true":"🥳","false":""}')[inputs.use-emoji] }}
env:
MESSAGE: ${{ inputs.message }}