pescap / WebScrapingMDS

Proyectos del curso de Web Scraping del MDS UAI 2022
GNU General Public License v3.0
12 stars 42 forks source link

Propuesta Actions al producto13 #287

Open molivadatascience opened 1 year ago

molivadatascience commented 1 year ago

Crear una propuesta que apoye al producto13

molivadatascience commented 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