Skip to content

Update main.yml

Update main.yml #1

Workflow file for this run

name: Execute Script

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

invalid `cron` attribute "21 28 * * *"
on:
schedule:
- cron: '21 28 * * *'
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install selenium
- name: Run Python script
run: python src/pdf_downloader.py
- name: Commit and push updated last date
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add ultima_data.txt
git commit -m "Atualizar última data [skip ci]"
git push