Skip to content

Commit 833e267

Browse files
committed
push to the current branch
1 parent ab69d60 commit 833e267

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/prettier.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ jobs:
5454
git config user.email "[email protected]"
5555
git add .
5656
git commit -m "Apply Prettier formatting"
57-
git push
57+
58+
# Extract the branch name from GITHUB_REF
59+
BRANCH_NAME=${GITHUB_REF#refs/heads/}
60+
61+
# Push the commit to the branch
62+
git push origin HEAD:$BRANCH_NAME
63+
5864
DIFF_OUTPUT=$(git diff HEAD~1 HEAD)
5965
echo "DIFF_OUTPUT<<EOF" >> $GITHUB_ENV
6066
echo "$DIFF_OUTPUT" >> $GITHUB_ENV

0 commit comments

Comments
 (0)