Skip to content

Commit 8822fc6

Browse files
peter-evansw9jds
authored andcommitted
Add PROJECT_PATH env var (w9jds#8)
1 parent 342eec2 commit 8822fc6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ This Action for [firebase-tools](https://github.com/firebase/firebase-tools) ena
1313

1414
* `PROJECT_ID` - **Optional**. To specify a specific project to use for all commands, not required if you specify a project in your `.firebaserc` file.
1515

16+
* `PROJECT_PATH` - **Optional**. The path to `firebase.json` if it doesn't exist at the root of your repository. e.g. `./my-app`
17+
1618
## Example
1719

1820
To authenticate with Firebase, and deploy to Firebase Hosting:

entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ if [ -n "$PROJECT_ID" ]; then
1212
firebase use --add $PROJECT_ID
1313
fi
1414

15+
if [ -n "$PROJECT_PATH" ]; then
16+
cd $PROJECT_PATH
17+
fi
18+
1519
sh -c "firebase $*"

0 commit comments

Comments
 (0)