From 721867fdcfb46fe78e0205a9e33f035dc715d4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Thu, 5 May 2022 18:33:24 +0200 Subject: [PATCH] fix(ci): prevent running `codegen_on_pr` on main (#476) --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 30ceedbf01..4d117d96a4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -302,6 +302,7 @@ jobs: if: | always() && needs.setup.outputs.RUN_CODEGEN == 'true' && + github.event_name == 'pull_request' && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'failure') steps: @@ -322,7 +323,6 @@ jobs: type: minimal - name: Push generated code to generated branch - if: github.event_name == 'pull_request' id: pushGeneratedCode run: yarn workspace scripts pushGeneratedCode env: