From 4bd365ff01db6fa85504aaf4d29b2b22b4ef54d2 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Date: Tue, 21 Nov 2023 20:32:34 -0300 Subject: [PATCH] =?UTF-8?q?atualiza=C3=A7=C3=B5es=20:=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/list_dir.yml | 34 ++++++++++++++++++++++++++++ .github/workflows/pdf_downloader.yml | 4 ++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/list_dir.yml diff --git a/.github/workflows/list_dir.yml b/.github/workflows/list_dir.yml new file mode 100644 index 0000000..4d685f5 --- /dev/null +++ b/.github/workflows/list_dir.yml @@ -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 "actions@users.noreply.github.com" + git add --all + git commit -m "[ci] --> list_dir.py" + git push diff --git a/.github/workflows/pdf_downloader.yml b/.github/workflows/pdf_downloader.yml index ec48611..e368fec 100644 --- a/.github/workflows/pdf_downloader.yml +++ b/.github/workflows/pdf_downloader.yml @@ -2,7 +2,7 @@ name: Script Download dos Diários Oficiais on: schedule: - - cron: '00 23 * * *' + - cron: '00 11 * * *' jobs: run_script: @@ -30,5 +30,5 @@ jobs: git config user.name "GitHub Actions" git config user.email "actions@users.noreply.github.com" git add --all - git commit -m "Atualizar última data [skip ci]" + git commit -m "[ci] --> pdf_downloader.py" git push