diff --git a/.github/workflows/restop.yml b/.github/workflows/restop.yml index e72902a..3109d88 100644 --- a/.github/workflows/restop.yml +++ b/.github/workflows/restop.yml @@ -10,10 +10,6 @@ jobs: steps: - name: Show GLIBC run: ldd --version - - name: Checkout sources - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.sha || env.GITHUB_SHA }} - name: get old node run: | @@ -22,7 +18,12 @@ jobs: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" - nvm install 14.21.3 + nvm install 14.21.3 + - name: Checkout sources + uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.sha || env.GITHUB_SHA }} + - name: Set env on push if: github.event_name == 'push'