Skip to content

Commit

Permalink
Add condition for not being on trunk when pushing in format CI (#1466)
Browse files Browse the repository at this point in the history
Don't push unless we aren't on trunk.
  • Loading branch information
tvami authored Sep 18, 2024
1 parent 0563d2d commit a129edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit a129edc

Please sign in to comment.