commit c9a1375e89c0180aee305b837cdac85c35af22fe Author: Joachim Jablon Date: Thu Jul 15 21:08:53 2021 +0200 Base composite action from documentation diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..397a7a1 --- /dev/null +++ b/action.yml @@ -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