Skip to content

Commit

Permalink
Log
Browse files Browse the repository at this point in the history
  • Loading branch information
carlssonk committed Sep 24, 2024
1 parent 920467f commit f72e62e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ jobs:
if: matrix.step == 'resources' && github.event_name != 'workflow_dispatch'
run: |
terraform show -json | sed -n "2p" > terraform_show.json
echo "$(cat terraform_show.json)"
echo "terraform_state_json=$(cat terraform_show.json)" >> $GITHUB_OUTPUT
working-directory: ${{ env.TF_ROOT_DIRECTORY }}

Expand All @@ -185,12 +186,12 @@ jobs:
TAG_NAME="${COMMIT_HASH}"
if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "Tag $TAG_NAME already exists. Skipping tag creation."
else
git tag $TAG_NAME
git push origin $TAG_NAME
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
echo "Tag $TAG_NAME created and pushed."
else
echo "Tag $TAG_NAME already exists. Skipping tag creation."
fi
- name: Create Release
Expand Down

0 comments on commit f72e62e

Please sign in to comment.