Skip to content

Dropdown

Dropdown #62

Workflow file for this run

name: Dropdown
on:
workflow_dispatch:
inputs:
ACTIONS_STEP_DEBUG:
description: ' ACTIONS_STEP_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_STEP_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