From e089f028252d641c1262fcc088a7be9d1097a8b7 Mon Sep 17 00:00:00 2001 From: Timo Sachsenberg Date: Thu, 18 Apr 2024 11:38:33 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a92147b..b0f2c39 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,6 +60,12 @@ jobs: exit 1 fi + # Normalize path to only contain front slashes + - name: Normalize path on windows + id: normalize_ws + run: echo "NORMALIZED_WORKSPACE=$(echo ${{ github.workspace }} | sed 's/\\/\//g')" >> $GITHUB_ENV + shell: bash + - name: Set up Visual Studio shell uses: egor-tensin/vs-shell@v2 with: @@ -105,4 +111,4 @@ jobs: with: tag_name: ${{ steps.generate_tag_name.outputs.TAG_NAME }} files: | - ./contrib-build/contrib_build-${{runner.os}}.tar.gz # can't use ${{ github.workspace }} here because windows backslash is not supported by pattern + ${{ steps.normalize_ws.outputs.NORMALIZED_WORKSPACE}}/contrib-build/contrib_build-${{runner.os}}.tar.gz # can't use ${{ github.workspace }} here because windows backslash is not supported by pattern