Modify some paths based on what it looks like Github Actions does with '--workdir' parameter when invoking the container
This commit is contained in:
parent
4af0e05c8d
commit
51a272d3e0
@ -9,14 +9,14 @@ if [ -z "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
DB_PATH=/tmp/database.db
|
DB_PATH=/tmp/database.db
|
||||||
SCHEMA_PATH="$GITHUB_WORKSPACE/$1"
|
SCHEMA_PATH="$1"
|
||||||
echo $GITHUB_WORKSPACE
|
pwd
|
||||||
echo $SCHEMA_PATH
|
echo $SCHEMA_PATH
|
||||||
|
|
||||||
# Create the database
|
# Create the database
|
||||||
sqlite3 $DB_PATH < $SCHEMA_PATH
|
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
|
if [ -n "$output" ]; then
|
||||||
echo "Some checks failed."
|
echo "Some checks failed."
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user