diff --git a/.github/actions/6-composite-action--definition/action.yml b/.github/actions/6-composite-action--definition/action.yml new file mode 100644 index 0000000..bc7eaa3 --- /dev/null +++ b/.github/actions/6-composite-action--definition/action.yml @@ -0,0 +1,21 @@ +name: "Composite Action" +description: "A simple composite action example" +inputs: + example-input: + description: "An example input" + required: true +outputs: + example-output: + description: "An example output" + value: ${{ steps.set-output.outputs.example-output }} +runs: + using: "composite" + steps: + - name: Step 1 - Echo the input + run: echo "Input is - ${{ inputs.example-input }}" + shell: bash + + - name: Step 2 - Set the output + id: set-output + run: echo "example-output=Hello from the composite action" >> $GITHUB_OUTPUT + shell: bash