Open molivadatascience opened 1 year ago
name: producto13
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
producto90:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Install Python dependencies
run: |
cd producto13
pip install -r requirements.txt
- name: Run scraper
run: |
cd producto13
python scraper.py
- name: Run plot
run: |
cd producto13
python plot.py
- name: Commit data files
run: |
pwd
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git status
git add -A
git commit -a -m "Added new date for producto13" || echo "Nothing to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
force: true
Crear una propuesta que apoye al producto13