-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.25 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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