Skip to content

Commit f50cb11

Browse files
fix
1 parent 5685cf2 commit f50cb11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/bb-export.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ jobs:
136136
137137
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
138138
echo "Processing $file"
139-
SQL_CONTENT=$(base64 < "$file")
140-
echo "SQL_CONTENT=$SQL_CONTENT" >> $GITHUB_ENV
139+
SQL_CONTENT=$(cat "$file" | python3 -c "import sys,base64,json; content=sys.stdin.read(); encoded=base64.b64encode(content.encode()).decode(); print(json.dumps(encoded)[1:-1])") echo "SQL_CONTENT=$SQL_CONTENT" >> $GITHUB_ENV
141140
STEP_ID=$(python3 -c "import uuid; print(str(uuid.uuid4()))")
142141
echo "STEP_ID=$STEP_ID" >> $GITHUB_ENV
143142
BASE_URL="${{ steps.bytebase-login.outputs.api_url }}"

0 commit comments

Comments
 (0)