From 6d46a9e11458a93947a02f19b0dfea85d658cf8f Mon Sep 17 00:00:00 2001 From: Mohammed Ali <146048575+Phantom0110@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:41:15 -0400 Subject: [PATCH] Test workflows check (#199) * 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 <98280966+AlexanderWangY@users.noreply.github.com> --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01bd7236f..cab9b430c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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