Skip to content

Commit

Permalink
fix(workflow): set verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
smaspons authored Jul 29, 2024
1 parent 8889317 commit 14a0c5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/database_ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
local file=$1
echo "Executing $file..."
# Capture the output of the psql command (both stdout and stderr)
output=$(psql -h localhost -U postgres -d giswater_test_db -v ON_ERROR_STOP=1 -f "$file" 2>&1)
output=$(psql -h localhost -U postgres -d giswater_test_db -v ON_ERROR_STOP=1 -v VERBOSITY=verbose -f "$file" 2>&1)
echo "Output: $output"
# Check the exit status of the psql command
if [ $? -ne 0 ]; then
Expand All @@ -88,10 +88,6 @@ jobs:
echo "$output"
exit 1
fi
# if ! psql -h localhost -U postgres -d giswater_test_db -v ON_ERROR_STOP=1 -f "$file" 2>&1; then
# echo "Error executing $file"
# exit 1
# fi
}
# Process each root directory and its subdirectories
Expand Down

0 comments on commit 14a0c5a

Please sign in to comment.