Skip to content

fix #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2025
Merged

fix #40

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/bb-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ jobs:

for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "Processing $file"
SQL_CONTENT=$(base64 < "$file")
echo "SQL_CONTENT=$SQL_CONTENT" >> $GITHUB_ENV
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
STEP_ID=$(python3 -c "import uuid; print(str(uuid.uuid4()))")
echo "STEP_ID=$STEP_ID" >> $GITHUB_ENV
BASE_URL="${{ steps.bytebase-login.outputs.api_url }}"
Expand Down
Loading