Run Data Transformation #318
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Data Transformation | |
on: | |
schedule: | |
# At 05:00 AM Halifax time every day | |
- cron: '54 16 * * *' | |
jobs: | |
data-transformation-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Run dataTransformation.py | |
run: python dataTransformation.py | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "anu99nilaweera@gmail.com" | |
git config --local user.name "itslokitha" | |
git add . | |
git commit -m "Update data files" -a || echo "No changes to commit" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |