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.
This commit is contained in:
PatTheMav
2023-07-20 14:37:22 +02:00
committed by Patrick Heyer
parent 1c84071830
commit a88a71c342
+1 -1
View File
@@ -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