From 4199e89b67a333641c338782c33112252c1fd778 Mon Sep 17 00:00:00 2001 From: sid palas Date: Thu, 27 May 2021 17:29:53 -0700 Subject: [PATCH] [Bugfix] remove quotes from tag regex --- .github/workflows/terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 7c7a1d8..eabdeab 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -75,7 +75,7 @@ jobs: - name: Check tag id: check-tag run: | - if [[ ${{ github.ref }} =~ "^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$" ]]; then echo ::set-output name=environment::production + if [[ ${{ github.ref }} =~ ^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo ::set-output name=environment::production elif [[ ${{ github.ref }} == 'refs/heads/main' ]]; then echo ::set-output name=environment::staging else echo ::set-output name=environment::unknown fi