diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 3abf5011a97f..c2b33ef8adba 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -152,7 +152,8 @@ jobs: ...context.repo, workflow_id: 'pr.yml', event: 'pull_request_target', - status: 'success', + // 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 ??