Modify some paths based on what it looks like Github Actions does with '--workdir' parameter when invoking the container

This commit is contained in:
Alessio 2024-11-17 19:49:18 -08:00
parent 4af0e05c8d
commit 51a272d3e0

View File

@ -9,14 +9,14 @@ if [ -z "$1" ]; then
fi
DB_PATH=/tmp/database.db
SCHEMA_PATH="$GITHUB_WORKSPACE/$1"
echo $GITHUB_WORKSPACE
SCHEMA_PATH="$1"
pwd
echo $SCHEMA_PATH
# Create the database
sqlite3 $DB_PATH < $SCHEMA_PATH
output=$(sqlite3 -column -header $DB_PATH < lints.sql)
output=$(sqlite3 -column -header $DB_PATH < /lints.sql)
if [ -n "$output" ]; then
echo "Some checks failed."
echo