Skip to content

Commit

Permalink
ci(fix): branch logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM committed Apr 12, 2023
1 parent 0125791 commit 40a3de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:

- name: Build App
env:
BRANCH: ${{ inputs.branch != 'stable' && inputs.branch || env.IS_MASTER_COMMIT && 'nightly' || '' }}
BRANCH: ${{ inputs.branch == 'stable' && '' || (inputs.branch == 'nightly' || env.IS_MASTER_COMMIT) && 'nightly' }}
EXTENSION_ID: ${{ ((inputs.branch == 'nightly' || env.IS_MASTER_COMMIT == 'true') && env.NIGHTLY_EXTENSION_ID_AMO) || (inputs.release && env.EXTENSION_ID_AMO) }}
run: |
OUT_DIR=mv3 yarn build:prod
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
- name: Build (Hosted)
env:
BRANCH: ${{ inputs.branch != 'stable' && inputs.branch || env.IS_MASTER_COMMIT && 'nightly' || '' }}
BRANCH: ${{ inputs.branch == 'stable' && '' || (inputs.branch == 'nightly' || env.IS_MASTER_COMMIT) && 'nightly' }}
run: |
yarn build-hosted:prod
Expand Down

0 comments on commit 40a3de2

Please # to comment.