Skip to content

Commit

Permalink
CI: Fix scheduled Steam builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PatTheMav committed Jul 20, 2023
1 parent 1c84071 commit a88a71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a88a71c

Please sign in to comment.