mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-03-14 22:27:01 +01:00
23 lines
629 B
YAML
23 lines
629 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:
|
|
- run: echo Hello ${{ inputs.who-to-greet }}.
|
|
shell: bash
|
|
- id: random-number-generator
|
|
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
|
|
shell: bash
|
|
- run: goodbye.sh
|
|
shell: bash
|