Skip to content

Commit eccb49c

Browse files
use powershell to correct ARTIFACT_PATH
1 parent a02ba29 commit eccb49c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,11 @@ jobs:
432432
path: ${{ env.BUILD_ARTIFACTS_PATH }}
433433

434434
- name: Save artifact path to variable
435+
shell: pwsh
435436
run: |
436-
# Find the artifact ending with 'Windows_64bit.exe' in the specified download directory and prepend the full path
437-
ARTIFACT_PATH=$(find ${{ env.BUILD_ARTIFACTS_PATH }} -name "*Windows_64bit.exe" -exec realpath {} \;)
438-
echo "ARTIFACT_PATH=${ARTIFACT_PATH}" >> $GITHUB_ENV
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
439440
440441
- name: Save Win signing certificate to file
441442
run: echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER }}

0 commit comments

Comments
 (0)