diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml deleted file mode 100644 index 4dad7af..0000000 --- a/.github/workflows/actions.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: run main.py - -on: - schedule: - - cron: '20 23 * * *' # At 00:00 on Monday - -jobs: - build: - runs-on: ubuntu-latest - steps: - - - name: checkout repo content - uses: actions/checkout@v2 # checkout the repository content - - - name: setup python - uses: actions/setup-python@v4 - with: - python-version: '3.10' # install the python version needed - - - name: install python packages - run: | - python -m pip install --upgrade pip - pip install selenium - - - name: execute py script # run main.py - run: python src/pdf_downloader.py - - - name: commit files - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add -A - git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty) - - - name: push changes - uses: ad-m/github-push-action@v0.6.0 - with: - branch: carlos diff --git a/.github/workflows/main.yml b/.github/workflows/pdf_downloader.yml similarity index 88% rename from .github/workflows/main.yml rename to .github/workflows/pdf_downloader.yml index 0074e68..73381e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/pdf_downloader.yml @@ -1,4 +1,4 @@ -name: Execute Script +name: Script de Download dos Diarios Oficiais on: schedule: @@ -29,6 +29,6 @@ jobs: run: | git config user.name "GitHub Actions" git config user.email "actions@users.noreply.github.com" - git add ultima_data.txt + git add pdf_downloader_last_date.txt git commit -m "Atualizar Ășltima data [skip ci]" git push