-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
35 lines (35 loc) · 937 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 'Brad Bot'
description: 'enforce things'
inputs:
who-to-greet: # id of input
description: 'Who to greet'
required: true
default: 'World'
GITHUB_TOKEN:
description: 'Authorization Token for accessing GitHub'
required: true
outputs:
random-number:
description: "Random number"
value: ${{ steps.random-number-generator.outputs.random-number }}
runs:
using: composite
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.20.x'
- run: echo Hello ${{ inputs.who-to-greet }}.
shell: bash
- run: env
shell: bash
- run: find $GITHUB_ACTION_PATH -print
shell: bash
- run: $GITHUB_ACTION_PATH/run-hi.sh ${{ inputs.GITHUB_TOKEN }}
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