Skip to content

Commit

Permalink
Emit input template and variables in action
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgenVatle committed Nov 29, 2023
1 parent 2884104 commit 72586bd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ outputs:
Parsed output of your template.
Useful if you want to feed the template into some other workflow step.
input:
value: ${{ steps.template.input }}
description: |
Your raw template before it was parsed.
variables:
value: ${{ steps.template.variables }}
description: |
The input variables you provided to build the template. Handy if you need to re-use them somewhere else.
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -59,4 +68,6 @@ runs:
fi
emitToOutput parsed "$parsed_template"
emitToOutput input "$TEMPLATE"
emitToOutput variables "${{ inputs.variables }}"

0 comments on commit 72586bd

Please sign in to comment.