Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <[email protected]>
  • Loading branch information
Vitor Bandeira committed Jul 30, 2024
1 parent 26f6289 commit 05cf66d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/github-actions-update-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
echo "PR has commit sha: $COMMIT_SHA"
COMMIT_SHA=abbc09da7f92f176a669e72d52653b80f074c12e
echo "${CREDS_FILE}" > creds.json
cat creds.json
if [[ "${{ github.event.label.name }}" == "Update Rules Overwrite" ]]; then
echo "Calling updateRules.py with overwrite."
python flow/util/updateRules.py --keyFile creds.json \
Expand Down
4 changes: 4 additions & 0 deletions flow/util/updateRules.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

# Initialize Firebase Admin SDK with service account credentials
with open(args.keyFile) as file:
print(args.keyFile)
print(file.read())
cred = credentials.Certificate(json.load(file))

firebase_admin.initialize_app(cred)
Expand All @@ -37,6 +39,8 @@

runFilename = f'rules-base.json'

exit(0)

for designsDir, dirs, files in sorted(os.walk('designs', topdown=False)):
dirList = designsDir.split(os.sep)
if len(dirList) != 3:
Expand Down

0 comments on commit 05cf66d

Please sign in to comment.