Skip to content

Commit

Permalink
Defaults template in the composite action, rather than at the inputs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-carey committed Oct 12, 2023
1 parent a2446b2 commit a03f4a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inputs:
template:
description: 'The path to the template file to render'
type: string
default: ${{ github.action_path }}/message.json.j2
required: false
status:
description: 'The status of the deployment. Options are started, success, and failure'
type: string
Expand Down Expand Up @@ -93,7 +93,7 @@ runs:
ENVIRONMENT: ${{ inputs.environment }}
MESSAGE: ${{ inputs.message }}
STATUS: ${{ inputs.status }}
TEMPLATE: ${{ inputs.template }}
TEMPLATE: ${{ inputs.template || format('{0}/message.json.j2', github.action_path) }}
TYPE: ${{ inputs.type }}
VERSION: ${{ inputs.version }}

Expand Down

0 comments on commit a03f4a6

Please sign in to comment.