test variables

This commit is contained in:
Kirill Chikalin
2025-03-20 07:49:28 +03:00
parent 76b1401d16
commit 266bb1c3e2

View File

@@ -1,6 +1,10 @@
name: 'Hello World' name: 'Hello World'
description: 'Greet someone' description: 'Greet someone'
inputs: inputs:
message_id:
description: "Message ID"
required: false
default: ${{ env.MESSAGE_ID }}
who-to-greet: # id of input who-to-greet: # id of input
description: 'Who to greet' description: 'Who to greet'
required: true required: true
@@ -13,10 +17,15 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: Set Greeting - name: Set Greeting
run: echo "Hello $INPUT_WHO_TO_GREET." run: |
echo "Hello $INPUT_WHO_TO_GREET."
echo MESSAGE=$MESSAGE
echo inputs.message_id==${{ inputs.message_id }}
echo env.MESSAGE_ID=${{ env.MESSAGE_ID }}
shell: bash shell: bash
env: env:
INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }} INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }}
MESSAGE: ${{ inputs.message_id }}
- name: Random Number Generator - name: Random Number Generator
id: random-number-generator id: random-number-generator