From 9aac3a8fce8ebfa5460df0d1ccef260f1fd6af8f Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Wed, 10 Jul 2024 21:10:25 -0400 Subject: [PATCH] fix: set environment to empty on non-release tags --- .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 5013dfedf..aa11d841a 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: ${{ (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production' || 'staging' }} + environment: ${{ ((startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production') || (startsWith(github.ref, 'refs/tags/v') && '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 b74a32dd8..eb126c952 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: ${{ (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production' || 'staging' }} + environment: ${{ ((startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production') || (startsWith(github.ref, 'refs/tags/v') && 'staging') }} env: STRICT: ${{ inputs.STRICT }} ENV: ${{ vars.ENV }}