diff --git a/.github/workflows/ecs-deploy-v3.yml b/.github/workflows/ecs-deploy-v3.yml index 18b45a9..1c1371f 100644 --- a/.github/workflows/ecs-deploy-v3.yml +++ b/.github/workflows/ecs-deploy-v3.yml @@ -145,7 +145,7 @@ jobs: echo "docker_image_tag=$TF_VAR_DOCKER_IMAGE_TAG" >> "$GITHUB_OUTPUT" - name: Add environment tag - if: github.ref_name == 'master' + if: github.ref_name == 'master' || github.ref_type == 'tag' uses: sencrop/github-workflows/actions/add-git-tag@master with: tag: ${{ inputs.environment }} diff --git a/.github/workflows/terraform-deploy-v1.yml b/.github/workflows/terraform-deploy-v1.yml index a7b478f..982238b 100644 --- a/.github/workflows/terraform-deploy-v1.yml +++ b/.github/workflows/terraform-deploy-v1.yml @@ -125,7 +125,7 @@ jobs: slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Add environment tag - if: github.ref_name == 'master' + if: github.ref_name == 'master' || github.ref_type == 'tag' uses: sencrop/github-workflows/actions/add-git-tag@master with: tag: ${{ inputs.environment }}