diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 48b21d2..254e595 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} @@ -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