From cef7f280bfcf5362a290b60a5db7c2514ae1e355 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Sun, 10 Nov 2024 20:45:29 +0800 Subject: [PATCH] Update prettier.yml --- .github/workflows/prettier.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index c2634b0d1..b5f8c496c 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -25,11 +25,8 @@ jobs: - name: Create branch run: | BRANCH_NAME="prettier-$(date +%s)" - echo "Generated branch name: $BRANCH_NAME" - if [ -z "$BRANCH_NAME" ]; then - echo "Error: Branch name is empty." - exit 1 - fi + echo "Generated branch: $BRANCH_NAME" + echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV git checkout -b "$BRANCH_NAME" - name: Commit