From 398f0d0f94486a024a682d7aff3d3730e5c3f506 Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Wed, 10 Jul 2024 17:14:13 -0400 Subject: [PATCH] fix: stricter check for production environment --- .github/workflows/build-shared-android.yml | 2 +- .github/workflows/build-shared-ios.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-shared-android.yml b/.github/workflows/build-shared-android.yml index d4a0849a0..4453faace 100644 --- a/.github/workflows/build-shared-android.yml +++ b/.github/workflows/build-shared-android.yml @@ -35,7 +35,7 @@ jobs: android-build: name: Android Build runs-on: ubuntu-latest - environment: ${{ !contains(github.ref_name, 'beta') && 'production' || 'staging' }} + environment: ${{ (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production' || 'staging' }} env: STRICT: ${{ inputs.STRICT }} ENV: ${{ vars.ENV }} diff --git a/.github/workflows/build-shared-ios.yml b/.github/workflows/build-shared-ios.yml index 6150815f9..b74a32dd8 100644 --- a/.github/workflows/build-shared-ios.yml +++ b/.github/workflows/build-shared-ios.yml @@ -39,7 +39,7 @@ jobs: ios-build: name: iOS Build runs-on: macos-14 - environment: ${{ !contains(github.ref_name, 'beta') && 'production' || 'staging' }} + environment: ${{ (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production' || 'staging' }} env: STRICT: ${{ inputs.STRICT }} ENV: ${{ vars.ENV }}