workflows/labels: label rebuilds on failed PR workflow

We already tried to fix this case earlier, but didn't account for all
cases: A scheduled workflow can also encounter a pull request with
failed PR workflow. This failure doesn't need to be in the Eval part, so
artifacts could *still* be available. To make sure PRs always get
rebuild labels, just ignore the status condition. Either the artifact is
there, or it is not.

(cherry picked from commit 3be9e2afc1)
This commit is contained in:
Wolfgang Walther
2025-06-25 15:14:32 +02:00
committed by github-actions[bot]
parent ad1cfc34f3
commit 4faa36a97d

View File

@@ -147,8 +147,6 @@ jobs:
...context.repo,
workflow_id: 'pr.yml',
event: 'pull_request_target',
// In pull_request contexts the workflow is still running.
status: context.payload.pull_request ? undefined : 'success',
exclude_pull_requests: true,
head_sha: pull_request.head.sha
})).data.workflow_runs[0]?.id ??