Skip to content

Commit 8dea8fc

Browse files
kd91076kd91076
authored andcommitted
Add composite action
1 parent 49fe189 commit 8dea8fc

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121

2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
24+
25+
#Intellij
26+
.idea/

action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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-id }}
12+
runs:
13+
using: "composite"
14+
steps:
15+
- run: echo Hello ${{ inputs.who-to-greet }}.
16+
shell: bash
17+
# - id: random-number-generator
18+
# run: echo "::set-output name=random-id::$(echo $RANDOM)"
19+
# shell: bash
20+
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
21+
shell: bash
22+
- run: good_morning.sh
23+
shell: bash

good_morning.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
echo "Hello Good Morning !!"

0 commit comments

Comments
 (0)