From f8bea517746858855b4c67ed5f635d3393db4bd3 Mon Sep 17 00:00:00 2001 From: ghannay10 <76520424+ghannay10@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:40:27 +0100 Subject: [PATCH] Fix/release action (#80) * fix: start runner env * rm: env variable * fix: runner labels * fix: main branch --- .github/workflows/release-infra.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-infra.yml b/.github/workflows/release-infra.yml index dcc5e604..5fb15ace 100644 --- a/.github/workflows/release-infra.yml +++ b/.github/workflows/release-infra.yml @@ -41,7 +41,7 @@ jobs: - id: env-var run: | # prod env from main branch - if [[ "${{ github.ref_name }}" == refs/heads/main ]]; then + if [[ "${{ github.ref_name }}" == main ]]; then export ENVIRONMENT=prod else export ENVIRONMENT=$(echo ${{ github.ref_name }} | awk -F- '{ print $2 }')