File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments