chore: update

This commit is contained in:
zizifn
2020-12-13 17:21:06 +08:00
committed by zizifn3
parent 9771131702
commit 591c0a9e2f
3 changed files with 1 additions and 1 deletions

21
.github/actions/action.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
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-id }}
runs:
using: "composite"
steps:
- run: echo Hello ${{ inputs.who-to-greet }}.
shell: bash
- id: random-number-generator
run: echo "::set-output name=random-id::$(echo $RANDOM)"
shell: bash
- run: ${{ github.action_path }}/goodbye.sh
shell: bash

1
.github/actions/goodbye.sh vendored Normal file
View File

@@ -0,0 +1 @@
echo "Goodbye"