diff --git a/.github/workflows/project-status-sync.yml b/.github/workflows/project-status-sync.yml index 09e1d2f3d4..0ef5275bfe 100644 --- a/.github/workflows/project-status-sync.yml +++ b/.github/workflows/project-status-sync.yml @@ -57,12 +57,18 @@ jobs: // Remove existing status labels for (const label of existingLabels) { if (allStatusLabels.includes(label)) { - await github.rest.issues.removeLabel({ - owner: repo.owner, - repo: repo.repo, - issue_number, - name: label - }).catch(() => {}); + try { + await github.rest.issues.removeLabel({ + owner: repo.owner, + repo: repo.repo, + issue_number, + name: label + }); + } catch (error) { + if (error.status !== 404) { + throw error; + } + } } }