Skip to content

Commit

Permalink
Merge pull request #33 from overmindtech/add-tags
Browse files Browse the repository at this point in the history
Add the ability to define tags
  • Loading branch information
dylanratcliffe authored Nov 27, 2024
2 parents f83e2bf + bfd2706 commit e126960
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions submit-plan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ inputs:
app:
description: "The Overmind instance to connect to. Defaults to `https://app.overmind.tech`"
required: false
tags:
description: "A comma separated list of key=value tags to attach to the change"
required: false

outputs:
change-url:
Expand Down Expand Up @@ -88,6 +91,10 @@ runs:
tf_plan_output_arg="--terraform-plan-output ${{ inputs.plan-output }}"
fi
if [ -n "${{ inputs.tags }}" ]; then
tags_arg="--tags ${{ inputs.tags }}"
fi
if [ ${{ github.event_name }} = pull_request ]; then
title="$(jq -r .pull_request.title < ${{github.event_path}} )"
description='This change was automatically created from a PR'
Expand All @@ -111,6 +118,7 @@ runs:
--ticket-link "$ticket_link" \
$code_changes_arg \
$tf_plan_output_arg \
$tags_arg \
--log '${{ inputs.log }}' \
$app_arg \
${{ inputs.plan-json }} \
Expand Down

0 comments on commit e126960

Please sign in to comment.