Action | Status |
---|---|
CRON Schedule | |
Manual Dispatch |
Python script to pull and version controll GC Notfiy template objects
- Python 3.6+
- Pull the repository:
git clone https://github.com/open-data/gcnotify-templates.git
- Navigate to new repo:
cd gcnotify-templates
- Create a python virtual environment:
python3 -m venv ./venv
- Activate the venv:
. venv/bin/activate
- Install the requirements into the venv:
pip install -r requirements.txt
- Run the python script:
python3 notify.py
The action is run at midnight and noon. It will build the python3 environment, and run the notify.py script.
This will fetch the templates from the GC Notify API and parse them into yaml files. It will commit any template changes, including deletions.