[wp-trac] [WordPress Trac] #54742: Fix GHA on first runs for new branches
WordPress Trac
noreply at wordpress.org
Mon Apr 4 19:59:48 UTC 2022
#54742: Fix GHA on first runs for new branches
------------------------------+---------------------
Reporter: davidbaumwald | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+---------------------
Changes (by desrosj):
* milestone: Awaiting Review => 6.0
Comment:
I've attached a fix attempt.
The PR adds a check for the `total_count` field found in the API response
to ensure there is at least one response before attempting to access it.
If there are no previous runs, a default of `failure` will be used. This
will trigger the "fixed" job, which will post to Slack that the workflow
is now passing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54742#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list