Run Extraction #316
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 Extraction | |
on: | |
schedule: | |
# At 03:00 AM Halifax time every day | |
- cron: '0 18 * * *' | |
jobs: | |
extraction-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 Extraction.py | |
run: python Extraction_testing.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 }} |