Skip to content

Commit

Permalink
use github api
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Apr 4, 2024
1 parent cab187b commit 5328e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
- name: Check XZ-Utils Upstream
# If this fails, tukaani-project/xz is back online and the liblzma overlay patch should be removed.
run: git ls-remote https://github.com/tukaani-project/xz nonexistant-ref; if ($LastExitCode -eq 0) {$LastExitCode = 1; Write-Output "tuukani-project/xz is reachable. liblzma overlay patch should be removed."} else { $LastExitCode = 0}
run: Invoke-RestMethod -SkipHttpErrorCheck -StatusCodeVariable "sc" -Uri https://api.github.com/repos/tukaani-project/xz; if($sc -eq 200) {$LastExitCode = 1; Write-Output "tuukani-project/xz is reachable. liblzma overlay patch should be removed."} else { $LastExitCode = 0}

- uses: ilammy/msvc-dev-cmd@v1

Expand Down

0 comments on commit 5328e0a

Please sign in to comment.