Output #1171
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: 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 "[email protected]" | |
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 |