add echo on TAG_NPM; remove NX FLAGS sed exp

This commit is contained in:
Marco Carrozzo
2023-01-10 10:27:41 +01:00
parent d3959566a3
commit e825bc30a9
2 changed files with 2 additions and 6 deletions

View File

@@ -77,12 +77,6 @@ runs:
uses: ./.github/actions/before-install
with:
act: ${{ inputs.act }}
# sanitize nx calculation flags string
- name: input validation for NX CALCULATION FLAGS
shell: bash
run: |
export NX_CALCULATION_FLAGS=$(echo $NX_CALCULATION_FLAGS | sed "s@'@@g")
echo "NX_CALCULATION_FLAGS=$NX_CALCULATION_FLAGS" >> $GITHUB_ENV
- name: link nx executable
run: sudo ln -s $(npm bin)/nx /usr/bin/nx
shell: bash

View File

@@ -32,9 +32,11 @@ runs:
fi
if [[ GITHUB_REF_NAME == "master" ]]; then
echo "Set up TAG_NPM to latest on master branch"
TAG_NPM="latest"
fi
if [[ GITHUB_REF_NAME == "develop" ]]; then
echo "Set up TAG_NPM to alpha on develop branch"
TAG_NPM="alpha"
fi
echo "TAG_NPM=${TAG_NPM}" >> $GITHUB_ENV