Skip to content

Commit

Permalink
Test workflows check (#199)
Browse files Browse the repository at this point in the history
* Add this to workflows to test new pull request

* Testing new workflows with firebase-secret.json file.

* Updated workflows to make the check detect firebase-secret.json

* Testing checks with .env files

* Testing checks with .env files

* Testing checks with .env files

* Testing checks with .env files

* Testing checks with .env files

* Testing check for .env files

* deleted firebase-secret.json

* testing alternative for checking firebase-secret.json

* testing .env files

* Testing for firebase-secret.json

* Delete server/firebase-secret.json

---------

Co-authored-by: Alexander Wang <[email protected]>
  • Loading branch information
Phantom0110 and AlexanderWangY authored Mar 19, 2024
1 parent 3618154 commit 6d46a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Check for private.json and .env files
run: |
if [ -e ".env" ] || [ -e "firebase-secret.json" ]; then
if [ -e "server/firebase-secret.json" ] || [ -e ".env"]; then
echo "Error: Found .env or firebase-secret.json in the pull request. Please remove them before merging.";
exit 1;
fi
Expand Down

0 comments on commit 6d46a9e

Please sign in to comment.