Add test goodbye script
This commit is contained in:
34
action.yml
Normal file
34
action.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
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)" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set GitHub Path
|
||||||
|
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
||||||
|
|
||||||
|
- name: Run goodbye.sh
|
||||||
|
run: goodbye.sh
|
||||||
|
shell: bash
|
||||||
1
goodbye.sh
Executable file
1
goodbye.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
echo Goodbye
|
||||||
Reference in New Issue
Block a user