Skip to content

Script Download dos Diários Oficiais #8

Script Download dos Diários Oficiais

Script Download dos Diários Oficiais #8

name: Script Download dos Diários Oficiais
on:
schedule:
- cron: '00 11 * * 1-5'
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.10.12
- 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 pull origin main
git add --all
git commit -m "[ci] executado -> src/pdf_downloader.py"
git push