From 8b03454a8709198cd34ddea110f009ca861b014e Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 29 Mar 2025 13:28:50 -0600 Subject: [PATCH] chore(workflow): update Biome workflow to push changes to the correct branch --- .github/workflows/biome.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml index f3cf0f16b..9e1f21c32 100644 --- a/.github/workflows/biome.yml +++ b/.github/workflows/biome.yml @@ -31,8 +31,8 @@ jobs: - name: Commit changes if needed run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add . - git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-format with Biome" - git push + BRANCH=$(echo "${{ github.head_ref || github.ref_name }}") + git add . + git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-format with Biome" + git push origin HEAD:$BRANCH +