Skip to content

Commit a5f2164

Browse files
update
1 parent 393a1b1 commit a5f2164

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/4-bb-export.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,20 @@ jobs:
113113
echo "==========================="
114114
115115
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
116-
echo "Processing $file ================================================"
116+
echo "DEBUG: Starting to process file: $file"
117117
SQL_CONTENT=$(base64 < "$file")
118-
echo "finishing processing $file ======================="
119-
echo "SQL_CONTENT=$SQL_CONTENT" >> $GITHUB_ENV
118+
echo "DEBUG: SQL content encoded"
120119
STEP_ID=$(python3 -c "import uuid; print(str(uuid.uuid4()))")
121-
echo "STEP_ID=$STEP_ID" >> $GITHUB_ENV
122120
BASE_URL="${{ steps.bytebase-login.outputs.api_url }}"
123-
echo "BASE_URL1111=$BASE_URL"
124-
echo "BASE_URL=$BASE_URL" >> $GITHUB_ENV
125-
121+
122+
echo "DEBUG: About to make first API call to create sheet"
126123
sheet_data=$(call_api \
127124
"$BASE_URL/projects/$PROJECT/sheets" \
128125
"POST" \
129126
"{\"title\":\"\",\"content\":\"$SQL_CONTENT\",\"type\":\"TYPE_SQL\",\"source\":\"SOURCE_BYTEBASE_ARTIFACT\",\"visibility\":\"VISIBILITY_PUBLIC\"}" \
130127
"Create Sheet")
131-
132-
echo "finishing sheetdata ================================================"
133-
128+
129+
echo "DEBUG: After first API call"
134130
SHEET_NAME=$(echo "$sheet_data" | python3 -c "import sys, json; print(json.load(sys.stdin)['name'])")
135131
136132
echo "finishing sheetname ================================================"

0 commit comments

Comments
 (0)