Skip to content

Commit d13bf69

Browse files
get full windows path with bash
1 parent eccb49c commit d13bf69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,13 @@ jobs:
430430
with:
431431
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
432432
path: ${{ env.BUILD_ARTIFACTS_PATH }}
433-
433+
434434
- name: Save artifact path to variable
435-
shell: pwsh
435+
shell: bash
436436
run: |
437-
$artifactPath = Get-ChildItem ${{ env.BUILD_ARTIFACTS_PATH }} -Filter "*Windows_64bit.exe" | Select-Object -First 1 | Resolve-Path -Relative
438-
$fullPath = Join-Path -Path (Get-Location).Drive.Root -ChildPath $artifactPath
439-
echo "ARTIFACT_PATH=$fullPath" | Out-File -FilePath $env:GITHUB_ENV -Append
437+
ARTIFACT=$(find "${{ env.BUILD_ARTIFACTS_PATH }}" -name "*Windows_64bit.exe" | head -n 1)
438+
FULL_PATH=$(cygpath -w $ARTIFACT)
439+
echo "ARTIFACT_PATH=$FULL_PATH" >> $GITHUB_ENV
440440
441441
- name: Save Win signing certificate to file
442442
run: echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER }}

0 commit comments

Comments
 (0)