diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index bbb927ec..be0531d5 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -150,10 +150,8 @@ jobs: steps: - name: Get node version run: | - version = $(curl https://nodejs.org/dist/index.json | jq '.[0] | .version') - id: version - echo "::set-output name=LATEST_NODE_VERSION::$version" - shell: bash + latest_node_version=$(echo $(curl https://nodejs.org/dist/index.json | jq '. [0].version')) + echo "::set-output name=LATEST_NODE_VERSION::$latest_node_version" id: version shell: bash - uses: actions/checkout@v3 @@ -171,4 +169,4 @@ jobs: if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} run: | echo "Latest node version failed to download." - exit 1 \ No newline at end of file + exit 1