From e535a891727218c1d2c2122f4861095ffbe2981f Mon Sep 17 00:00:00 2001 From: Jerome Dassonville Date: Wed, 22 Jan 2025 20:33:12 +0100 Subject: [PATCH] fix: production tag is not moving --- .github/workflows/ecs-deploy-v3.yml | 2 +- .github/workflows/terraform-deploy-v1.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}