← All Articles

Scheduled Firebase Functions to automate routine tasks

Posted on

Guide to triggering Firebase Functions based using the Google Cloud Scheduler, checking for values within Firestore Documents.


  1. Enable Google Scheduler API
git config --global core.autocrlf false

from Git Console or when install Git:

Git install window

  1. Develop Firebase Function
git rm --cached -r .
git reset --hard

from Git Console from the root of your project

  1. Configure Google Cloud Scheduler within the Firebase Function

VS Code End of line settings

  1. Create .gitattributes at the root folder:
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
productivitygoogle-cloud-schedulerfirebase-functionsfirestore