-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 966 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Script de download e extração 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
pip install PyPDF2
- name: Run Python script
run: python src/pdf_downloader.py && python src/list_dir.py && python src/readpdf.py && python src/counter.py && python src/remove_pdf.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] As Licitações do dia foram extraídas!"
git push