-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (64 loc) · 1.78 KB
/
dropdown.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Dropdown
on:
workflow_dispatch:
inputs:
ACTIONS_RUNNER_DEBUG:
description: 'ACTIONS_RUNNER_DEBUG'
required: true
default: 'TRUE'
type: choice
options:
- 'TRUE'
- 'FALSE'
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
name:
type: choice
description: Who to greet
options:
- monalisa
- cschleiden
message:
required: true
default: "default"
use-emoji:
type: boolean
description: Include 🎉🤣 emojis
boolean:
type: boolean
description: True or False
jobs:
greet:
runs-on: ubuntu-latest
env:
ACTIONS_RUNNER_DEBUG: ${{ github.event.inputs.boolean }}
outputs:
toJSON: ${{ steps.toJSON.outputs.JSON }}
# environment:
# name: "steps"
# url: "https://${{ steps.send.outcome }}.com"
steps:
- name: Send greeting
id: send
run: |
echo "${{ github.event.inputs.message }} ${{ fromJSON('["","💡"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"
echo "${{ github.event.inputs.message }}"
echo "${{ github.event.inputs.name }}"
echo "boolean is ${{ github.event.inputs.boolean }}"
echo "${{ inputs.boolean }}"
echo "${{ fromJSON('["","💡","💡"]')[github.event.inputs.use-emoji == 'true'] }}"
- name: toJSON
id: toJSON
run: |
- name: fromJSON
if: steps.send.conclusion == 'success'
id: fromJSON
run: |
echo