From d64459aa7b3b76fc60a811a7c0d981e7a8948058 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 10 Jun 2023 01:02:27 +0200 Subject: [PATCH] Check that breeze image builds quickly only on main branch This check is really for the developers who are developing on main and there is no need to run it for other branches. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5671422022236..d0ae3d35b9111 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -274,7 +274,9 @@ jobs: RUNS_ON: "${{needs.build-info.outputs.runs-on}}" UPGRADE_TO_NEWER_DEPENDENCIES: false PLATFORM: "linux/amd64" - if: needs.build-info.outputs.canary-run == 'true' + if: > + needs.build-info.outputs.canary-run == 'true' + && needs.build-info.outputs.default-branch == 'main' steps: - name: Cleanup repo run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm -rf /workspace/*"