Skip to content

Commit 311523c

Browse files
update
1 parent 85de13b commit 311523c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/bb-export.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ jobs:
8989
exit 1
9090
fi
9191
92-
# Parse manifest.toml once
93-
PROJECT=$(python3 -c "import toml; print(toml.load('$MANIFEST_PATH')['project'])")
94-
INSTANCE=$(python3 -c "import toml; print(toml.load('$MANIFEST_PATH')['instance'])")
95-
DATABASE=$(python3 -c "import toml; print(toml.load('$MANIFEST_PATH')['database'])")
96-
FORMAT=$(python3 -c "import toml; config=toml.load('$MANIFEST_PATH'); print(config.get('format', 'JSON'))")
92+
# Parse manifest.toml once using built-in tomllib
93+
PROJECT=$(python3 -c "import tomllib; print(tomllib.load(open('$MANIFEST_PATH', 'rb'))['project'])")
94+
INSTANCE=$(python3 -c "import tomllib; print(tomllib.load(open('$MANIFEST_PATH', 'rb'))['instance'])")
95+
DATABASE=$(python3 -c "import tomllib; print(tomllib.load(open('$MANIFEST_PATH', 'rb'))['database'])")
96+
FORMAT=$(python3 -c "import tomllib; config=tomllib.load(open('$MANIFEST_PATH', 'rb')); print(config.get('format', 'JSON'))")
9797
9898
# Process each SQL file
9999
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do

0 commit comments

Comments
 (0)