From 29ec6301958f5ed7829c584b400a273c58178427 Mon Sep 17 00:00:00 2001 From: Danielku15 Date: Mon, 12 Aug 2024 00:08:43 +0200 Subject: [PATCH] build: sanitize node version --- .github/workflows/~node.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/~node.yml b/.github/workflows/~node.yml index edf6569..34c8cbc 100644 --- a/.github/workflows/~node.yml +++ b/.github/workflows/~node.yml @@ -50,10 +50,14 @@ jobs: - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - run: node -e "console.log(process)" - run: ./build.cmd NodeTest + - id: sanitize-node-version + if: always() + run: echo "NODE_VERSION=${{ matrix.node }}" | sed 's/[*\/]//g' >> "$GITHUB_OUTPUT" + shell: bash - uses: actions/upload-artifact@v3 + if: always() with: - name: nodetest-${{ matrix.runs-on }}-${{ matrix.node }} + name: nodetest-${{ matrix.runs-on }}-${{ steps.sanitize-node-version.outputs.NODE_VERSION }} path: | test/test-outputs/**/*.*