diff --git a/entrypoint.sh b/entrypoint.sh index 32bdfeb..649d3da 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,8 @@ #!/bin/bash -cd functions; npm install +FUNCTIONS_DIR=${FUNCTIONS_DIR:-functions} + +cd $FUNCTIONS_DIR; npm install if [ -z "${FIREBASE_TOKEN}" ]; then echo "FIREBASE_TOKEN is missing" @@ -15,4 +17,4 @@ fi firebase deploy \ -m "${GITHUB_REF} (${GITHUB_SHA})" \ --project ${FIREBASE_PROJECT} \ - --only functions + --only functions \ No newline at end of file