Skip to content

Commit 245b5fa

Browse files
committed
1 parent 98beb93 commit 245b5fa

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.*.swp
2+
.DS_Store

action.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Hello World'
2+
description: 'Greet someone'
3+
inputs:
4+
who-to-greet: # id of input
5+
description: 'Who to greet'
6+
required: true
7+
default: 'World'
8+
outputs:
9+
random-number:
10+
description: "Random number"
11+
value: ${{ steps.random-number-generator.outputs.random-number }}
12+
runs:
13+
using: "composite"
14+
steps:
15+
- name: Set Greeting
16+
run: echo "Hello $INPUT_WHO_TO_GREET."
17+
shell: bash
18+
env:
19+
INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }}
20+
21+
- name: Random Number Generator
22+
id: random-number-generator
23+
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
24+
shell: bash
25+
26+
- name: Set GitHub Path
27+
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
28+
shell: bash
29+
env:
30+
GITHUB_ACTION_PATH: ${{ github.action_path }}
31+
32+
- name: Run goodbye.sh
33+
run: goodbye.sh
34+
shell: bash
35+

0 commit comments

Comments
 (0)