Get Weekly Data #88
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 : Get Weekly Data | |
on: | |
schedule: | |
- cron: "0 12 * * TUE" | |
workflow_dispatch: | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
jobs: | |
weekly-data: | |
runs-on: ubuntu-latest | |
env: | |
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts | |
CI_COMMIT_AUTHOR: Continuous Integration | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.9' | |
- name: Install requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install pandas | |
pip install numpy | |
pip install statsmodels | |
pip install lxml | |
pip install shinylive | |
- name: Run Script | |
run : python ./heisman_project/Weekly_Data_Job/Weekly_Job.py | |
- name: Update Docs | |
run : shinylive export ./Shiny_App docs | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "update data" -a | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: master |