From 0d7a52379940a9784de490bab07b12b633dcbc8b Mon Sep 17 00:00:00 2001 From: Kseniya Shychko Date: Wed, 6 Sep 2023 13:43:16 +0200 Subject: [PATCH] fix: environment env variable --- .github/workflows/deploy-to-s3.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy-to-s3.yml b/.github/workflows/deploy-to-s3.yml index cb48019c..886fdbe7 100644 --- a/.github/workflows/deploy-to-s3.yml +++ b/.github/workflows/deploy-to-s3.yml @@ -9,7 +9,7 @@ on: - '*' env: - environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }} + environment: ${{ (startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/cd_')) && 'UN' || 'dev') }} jobs: install_and_build: @@ -17,9 +17,6 @@ jobs: env: CI: false - - environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }} - steps: - name: Checkout repository uses: actions/checkout@v3 @@ -70,9 +67,6 @@ jobs: permissions: id-token: write - - environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') || (startsWith(github.ref, 'refs/heads/cd_') && 'UN') }} - steps: - name: Checkout repository uses: actions/checkout@v3