From d0345ae19de135e4a09db9464dde71a99c950d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 6 Dec 2024 14:28:52 +0100 Subject: [PATCH] Fix check --- .github/workflows/main.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e5c1e82a..7822bab8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -110,8 +110,10 @@ jobs: repo: context.repo.repo, ref: context.payload.after }); - for (let run of commit.data.check_runs) { - if (run.html_url.search(`/${context.runId}/`) >= 0 && run.conclusion === 'failure') { - process.exit(1); + if (commit.status !== 422) { + for (let run of commit.data.check_runs) { + if (run.html_url.search(`/${context.runId}/`) >= 0 && run.conclusion === 'failure') { + process.exit(1); + } } }