Commit 90a9aa12 by Lin Wang

fix: change the google sheet tab name

parent b77d563e
...@@ -48,8 +48,8 @@ async function uploadAllToSheets() { ...@@ -48,8 +48,8 @@ async function uploadAllToSheets() {
const existing = spreadsheet.sheets?.map((s: any) => s.properties?.title || '') || []; const existing = spreadsheet.sheets?.map((s: any) => s.properties?.title || '') || [];
for (const { subdir, file, path } of files) { for (const { subdir, file, path } of files) {
// Prefix sheet name with directory to distinguish diff vs nav // Use file name (without extension) as sheetName
const sheetName = `${subdir}-${file.replace(/\.json$/, '')}`; const sheetName = file.replace(/\.json$/, '');
if (!existing.includes(sheetName)) { if (!existing.includes(sheetName)) {
// Create new sheet // Create new sheet
await sheets.spreadsheets.batchUpdate({ await sheets.spreadsheets.batchUpdate({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment