Skip to content

Commit

Permalink
Composite action definition
Browse files Browse the repository at this point in the history
  • Loading branch information
olsido authored Jul 19, 2024
1 parent c957c35 commit ad47cec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/actions/6-composite-action--definition/action.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ad47cec

Please sign in to comment.