Skip to content

Commit

Permalink
fix: resolved missing env
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Oct 5, 2023
1 parent 224dce7 commit ffa0d9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/04_release_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ jobs:
# build-number if in dev env and deploy from specific branch
- if: ${{ github.ref_name != 'main' && env.ENVIRONMENT == 'dev'}}
run: |
if ${{inputs.semver}} == 'new_release' || ${{inputs.semver}} == 'breaking_change':
echo "⚠️ \"breaking-change\" and \"new-release\" are accepted only with main branch. Setting buildingNumber."
if $semver == 'new_release' || $semver == 'breaking_change':
echo "⚠️ \"breaking-change\" and \"new-release\" are accepted only with main branch. Setting buildNumber."
fi
echo "SEMVER=buildNumber" >> $GITHUB_ENV
env:
semver: ${{inputs.semver}}

# patch if in uat|prod env and deploy from specific branch
- if: ${{ github.ref_name != 'main' && (env.ENVIRONMENT == 'uat' || env.ENVIRONMENT == 'prod') }}
Expand Down

0 comments on commit ffa0d9e

Please sign in to comment.