Files
financial-machine-learning/.github/workflows/repo_status_weekly.yml
T
2021-04-12 11:42:11 -04:00

43 lines
1.1 KiB
YAML

name: Repo-Updater
# cron every sunday at 12 am, due to github api limits, change this to be ran once a week
#on:
# schedule:
# - cron: '0 0 * * *' # do every hour for now
# generate wiki page on every push
on: push
jobs:
# Set the job key. The key is displayed as the job name
update-repo-status:
# Name the Job
name: Update repo status for all saved repo
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script # run the run.py to get the latest data
run: |
python git_status.py
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GIT_TOKEN }}