1
0
Эх сурвалжийг харах

CI: Fix scheduled Steam builds

Apparently the workflow run list will also yield the _current_ workflow
run, so we have to fetch at least 2 runs to also get the prior one.
PatTheMav 2 жил өмнө
parent
commit
a88a71c342

+ 1 - 1
.github/workflows/scheduled.yaml

@@ -103,7 +103,7 @@ jobs:
           : Check Nightly Runs ☑️
           if (( ${+RUNNER_DEBUG} )) setopt XTRACE
 
-          local last_nightly=$(gh run list --workflow scheduled.yaml --limit 1 --json headSha --jq '.[0].headSha')
+          local last_nightly=$(gh run list --workflow scheduled.yaml --limit 2 --json headSha --jq '.[1].headSha')
 
           if [[ "${GITHUB_SHA}" == "${last_nightly}" ]] {
             print "passed=false" >> $GITHUB_OUTPUT