From a129edca0486586a7fca94098447bc8a350d6136 Mon Sep 17 00:00:00 2001 From: Tamas Vami Date: Wed, 18 Sep 2024 08:00:22 -0700 Subject: [PATCH] Add condition for not being on trunk when pushing in format CI (#1466) Don't push unless we aren't on trunk. --- .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}