diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml index 08707ffd..3974fe81 100644 --- a/.github/workflows/auto-publish.yml +++ b/.github/workflows/auto-publish.yml @@ -50,14 +50,13 @@ jobs: echo "Branch name: $BRANCH_NAME" # Simplified pattern that properly handles hyphens, underscores, and dots - if [[ $BRANCH_NAME =~ ^(feat|feature|fix|bugfix|break|breaking|hotfix|chore)/[a-zA-Z0-9._-]+$ ]]; then + if [[ "$BRANCH_NAME" =~ ^(feat|feature|fix|bugfix|break|breaking|hotfix|chore)/[a-zA-Z0-9._-]+$ ]]; then echo "✅ Branch pattern accepted: $BRANCH_NAME" - echo "should_publish=true" >> $GITHUB_OUTPUT - echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT + echo "should_publish=true" >> "$GITHUB_OUTPUT" + echo "branch_name=$BRANCH_NAME" >> "$GITHUB_OUTPUT" else echo "❌ Branch '$BRANCH_NAME' doesn't match required patterns" - echo "should_publish=false" >> $GITHUB_OUTPUT - exit 0 + echo "should_publish=false" >> "$GITHUB_OUTPUT" fi - name: Install dependencies