mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
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:
committed by
github-actions[bot]
parent
ad1cfc34f3
commit
4faa36a97d
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
@@ -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 ??
|
||||
|
||||
Reference in New Issue
Block a user