From ae7892bdda80b84f94a7ae78e7888f4a23bb72e1 Mon Sep 17 00:00:00 2001 From: Tamas Vami Date: Wed, 18 Sep 2024 07:40:43 -0700 Subject: [PATCH] Add condition for not being on trunk when pushing in format CI --- .github/workflows/format-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index b19a7bd9d..d318b3322 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -37,7 +37,7 @@ jobs: id: commit - name: Push changes - if: steps.commit.outcome == 'success' + if: github.ref != 'refs/heads/trunk' run: | git push origin HEAD:${GITHUB_HEAD_REF}