2025-09-18 10:17:40 -04:00
|
|
|
name: 'Hello World'
|
|
|
|
description: 'Greet someone'
|
|
|
|
inputs:
|
|
|
|
who-to-greet: # id of input
|
|
|
|
description: 'Who to greet'
|
|
|
|
required: true
|
|
|
|
default: 'World'
|
|
|
|
outputs:
|
|
|
|
random-number:
|
|
|
|
description: "Random number"
|
|
|
|
value: ${{ steps.random-number-generator.outputs.random-number }}
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Set Greeting
|
|
|
|
run: echo "Hello $INPUT_WHO_TO_GREET."
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }}
|
|
|
|
|
|
|
|
- name: Random Number Generator
|
|
|
|
id: random-number-generator
|
2025-09-18 11:31:32 -04:00
|
|
|
run: |
|
2025-09-18 11:35:50 -04:00
|
|
|
echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
|
2025-09-18 10:17:40 -04:00
|
|
|
shell: bash
|
|
|
|
|
2025-09-18 11:31:32 -04:00
|
|
|
- name: Set Gitea Path
|
|
|
|
run: |
|
2025-09-18 11:35:50 -04:00
|
|
|
echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
|
2025-09-18 10:17:40 -04:00
|
|
|
shell: bash
|
|
|
|
env:
|
2025-09-18 11:35:50 -04:00
|
|
|
GITEA_ACTION_PATH: ${{ github.action_path }}
|
2025-09-18 10:17:40 -04:00
|
|
|
|
|
|
|
- name: Run goodbye.sh
|
|
|
|
run: goodbye.sh
|
|
|
|
shell: bash
|