removed set-output in place of env vars

This commit is contained in:
David Kane 2022-10-13 11:58:03 +01:00
parent 8c91899e58
commit 8de06c262f

View file

@ -178,7 +178,7 @@ jobs:
- name: Get node version - name: Get node version
run: | run: |
latestNodeVersion=$(curl https://nodejs.org/dist/index.json | jq -r '. [0].version') latestNodeVersion=$(curl https://nodejs.org/dist/index.json | jq -r '. [0].version')
echo "::set-output name=LATEST_NODE_VERSION::$latestNodeVersion" echo "LATEST_NODE_VERSION=$latestNodeVersion" >> $GITHUB_ENV
id: version id: version
shell: bash shell: bash
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -189,11 +189,11 @@ jobs:
- name: Retrieve version after install - name: Retrieve version after install
run: | run: |
updatedVersion=$(echo $(node --version)) updatedVersion=$(echo $(node --version))
echo "::set-output name=NODE_VERSION_UPDATED::$updatedVersion" echo "NODE_VERSION_UPDATED=$updatedVersion" >> $GITHUB_ENV
id: updatedVersion id: updatedVersion
shell: bash shell: bash
- name: Compare versions - name: Compare versions
if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} if: ${{ env.LATEST_NODE_VERSION != env.NODE_VERSION_UPDATED}}
run: | run: |
echo "Latest node version failed to download." echo "Latest node version failed to download."
exit 1 exit 1