From dd2d49377f0246d266ff58ad69d72e886230fab7 Mon Sep 17 00:00:00 2001 From: panticmilos Date: Mon, 9 May 2022 15:02:55 +0200 Subject: [PATCH] update e2e --- .github/workflows/versions.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index c3517672..bbb927ec 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -148,10 +148,12 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] node-version: [current, latest, node] steps: - - name: Retrieve version before install + - name: Get node version run: | - version=$(echo $(node --version)) - echo "::set-output name=NODE_VERSION::$version" + version = $(curl https://nodejs.org/dist/index.json | jq '.[0] | .version') + id: version + echo "::set-output name=LATEST_NODE_VERSION::$version" + shell: bash id: version shell: bash - uses: actions/checkout@v3 @@ -166,6 +168,7 @@ jobs: id: updatedVersion shell: bash - name: Compare versions - if: ${{ steps.version.outputs.NODE_VERSION == steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} + if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} run: | - echo "System node version ${{steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} is same after the installation!" + echo "Latest node version failed to download." + exit 1 \ No newline at end of file