mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user