37 lines
881 B
YAML
37 lines
881 B
YAML
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
|
|
run: |
|
|
echo "RANDOM-NUMBER=$(echo $RANDOM)" >> $GITEA_ENV
|
|
shell: bash
|
|
|
|
- name: Set Gitea Path
|
|
run: |
|
|
echo "$GITEA_ACTION_PATH" >> $GITEA_OUTPUT
|
|
shell: bash
|
|
env:
|
|
GITEA_ACTION_PATH: ${{ gitea.action_path }}
|
|
|
|
- name: Run goodbye.sh
|
|
run: goodbye.sh
|
|
shell: bash
|