From 51a272d3e00f888711b4bb09a600b2de793d3d45 Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 17 Nov 2024 19:49:18 -0800 Subject: [PATCH] Modify some paths based on what it looks like Github Actions does with '--workdir' parameter when invoking the container --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 55485ef..340d2ec 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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