Skip to content

Dropdown

Dropdown #51

Workflow file for this run

name: Dropdown
on:
workflow_dispatch:
inputs:
ACTIONS_RUNNER_DEBUG:
description: 'ACTIONS_RUNNER_DEBUG'
required: true
default: '1'
type: choice
options:
- '1'
- '0'
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.ACTIONS_RUNNER_DEBUG }}
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