Skip to content

Commit

Permalink
atualizações : )
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos-kadu committed Nov 21, 2023
1 parent 60dbdd3 commit 4bd365f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/list_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Script Listagem de PDFs

on:
schedule:
- cron: '10 11 * * *'

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/list_dir.py

- name: Commit and push updated last date
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add --all
git commit -m "[ci] --> list_dir.py"
git push
4 changes: 2 additions & 2 deletions .github/workflows/pdf_downloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Script Download dos Diários Oficiais

on:
schedule:
- cron: '00 23 * * *'
- cron: '00 11 * * *'

jobs:
run_script:
Expand Down Expand Up @@ -30,5 +30,5 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add --all
git commit -m "Atualizar última data [skip ci]"
git commit -m "[ci] --> pdf_downloader.py"
git push

0 comments on commit 4bd365f

Please sign in to comment.