Skip to content

Commit

Permalink
fix: stricter check for production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Jul 10, 2024
1 parent 1aaba20 commit 398f0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-shared-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-shared-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 398f0d0

Please sign in to comment.