From 97db7d67925e8252a392272f5493a13cff79de41 Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:05:06 +0530 Subject: [PATCH] Update build-tool-packages.yml --- .github/workflows/build-tool-packages.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-tool-packages.yml b/.github/workflows/build-tool-packages.yml index b1be563..392c4b6 100644 --- a/.github/workflows/build-tool-packages.yml +++ b/.github/workflows/build-tool-packages.yml @@ -140,13 +140,13 @@ jobs: - name: Set ARTIFACT_NAME + shell: pwsh run: | - if [[ "${{ matrix.platform }}" == "darwin" && "${RUNNER_ARCH}" == "arm64" ]]; then - echo "ARTIFACT_NAME=${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-arm64" >> $GITHUB_ENV - else - echo "ARTIFACT_NAME=${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-x64" >> $GITHUB_ENV - fi - shell: bash + if ("${{ matrix.platform }}" -eq "darwin" -and "${env:RUNNER_ARCH}" -eq "arm64") { + echo "ARTIFACT_NAME=${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-arm64" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV + } else { + echo "ARTIFACT_NAME=${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-x64" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV + } - name: Extract files run: | if ('${{ matrix.platform }}' -eq 'win32') {