mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2025-02-21 15:30:57 -05:00
24 lines
629 B
YAML
24 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
|