Skip to content

Commit a3afa1d

Browse files
committed
[workflow] Fix syntax bugs in Windows CI action
1 parent 170c4f6 commit a3afa1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_flang_windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ jobs:
7474
# for the first successful run that produced the desired artifact.
7575
$build_name="llvm_build_win_${{ matrix.arch }}_clangcl_${{ matrix.llvm_branch }}"
7676
Invoke-WebRequest -Uri https://api.github.com/repos/flang-compiler/classic-flang-llvm-project/actions/workflows/pre-compile_llvm.yml/runs -OutFile llvm_runs.json
77-
$urls = @($(jq -r --arg b ${{ matrix.llvm_branch }} '.workflow_runs[] | select(.head_branch == $b) | select (.conclusion == ""success"") | .artifacts_url?' llvm_runs.json))
77+
$urls = @($(jq -r --arg b ${{ matrix.llvm_branch }} '.workflow_runs[] | select(.head_branch == $b) | select (.conclusion == "success") | .artifacts_url?' llvm_runs.json))
7878
Invoke-WebRequest "$(jq -r '.workflow_runs[0].artifacts_url?' llvm_runs.json)" -OutFile llvm_artifacts.json
7979
for ($i = 0; $i -lt $urls.Count; $i++) {
8080
$artifacts_url = $urls[$i]
81-
Invoke-WebRequest -Uri "$artifacts_url" -o llvm_artifacts.json
81+
Invoke-WebRequest -Uri "$artifacts_url" -OutFile llvm_artifacts.json
8282
$archive_url = "$(jq -r --arg b $build_name '.artifacts[] | select(.name == $b) | .archive_download_url' llvm_artifacts.json)"
8383
if (! $archive_url) {
8484
Write-Output "$artifacts_url did not contain a $build_name archive; too old?"

0 commit comments

Comments
 (0)