Skip to content

Output

Output #992

Workflow file for this run

name: Output
on:
# push:
# branches: [ main ]
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- name: execute py script # aggregate current data
run: |
python -m pip install -r requirements.txt
python relative-strength.py true false ${{ secrets.API_KEY }}
- name: push to log git
run: |
git clone https://skyte:${{ secrets.PAT }}@github.com/skyte/rs-log.git
rm ./rs-log/output/* && cp -a ./output/. ./rs-log/output
cd rs-log
git config user.name "CI" && git config user.email "ci@github.com"
git add --all
git commit -m "CI output update" || echo "nothing to commit"
git push || echo "nothing to push"
# - uses: actions/upload-artifact@v2
# with:
# name: rs_stocks.csv
# path: output