Skip to content

Sismos

Sismos #900

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Sismos
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:
Sismos:
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: |
pip install -r requirements.txt
python scraper_diario.py
- name: Commit data files
run: |
pwd
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git add -A
git commit -a -m "Added new date for sismos" || echo "Nothing to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
force: true