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.
This commit is contained in:
Wolfgang Walther
2025-06-27 09:14:01 +02:00
parent 4e9df2fc31
commit 3be9e2afc1
-2
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 ??