From 311523c71b7c2968080952ec134cc0123544dc94 Mon Sep 17 00:00:00 2001 From: adela Date: Fri, 10 Jan 2025 10:32:19 +0800 Subject: [PATCH] update --- .github/workflows/bb-export.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bb-export.yml b/.github/workflows/bb-export.yml index 66f2f30..dafe678 100644 --- a/.github/workflows/bb-export.yml +++ b/.github/workflows/bb-export.yml @@ -89,11 +89,11 @@ jobs: exit 1 fi - # Parse manifest.toml once - PROJECT=$(python3 -c "import toml; print(toml.load('$MANIFEST_PATH')['project'])") - INSTANCE=$(python3 -c "import toml; print(toml.load('$MANIFEST_PATH')['instance'])") - DATABASE=$(python3 -c "import toml; print(toml.load('$MANIFEST_PATH')['database'])") - FORMAT=$(python3 -c "import toml; config=toml.load('$MANIFEST_PATH'); print(config.get('format', 'JSON'))") + # Parse manifest.toml once using built-in tomllib + PROJECT=$(python3 -c "import tomllib; print(tomllib.load(open('$MANIFEST_PATH', 'rb'))['project'])") + INSTANCE=$(python3 -c "import tomllib; print(tomllib.load(open('$MANIFEST_PATH', 'rb'))['instance'])") + DATABASE=$(python3 -c "import tomllib; print(tomllib.load(open('$MANIFEST_PATH', 'rb'))['database'])") + FORMAT=$(python3 -c "import tomllib; config=tomllib.load(open('$MANIFEST_PATH', 'rb')); print(config.get('format', 'JSON'))") # Process each SQL file for file in ${{ steps.changed-files.outputs.all_changed_files }}; do