From 2874a38d542e27b2a0e569a9ec6198dc17be3982 Mon Sep 17 00:00:00 2001 From: Nathan-bs Date: Wed, 29 Jan 2025 18:41:35 -0300 Subject: [PATCH] =?UTF-8?q?CI:=20Integra=C3=A7=C3=A3o=20cont=C3=ADnua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/weekly_run_bot_Twitter.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/weekly_run_bot_Twitter.yml b/.github/workflows/weekly_run_bot_Twitter.yml index 8457ee0..e776344 100644 --- a/.github/workflows/weekly_run_bot_Twitter.yml +++ b/.github/workflows/weekly_run_bot_Twitter.yml @@ -1,15 +1,18 @@ name: Weekly Run Bot on: + workflow_dispatch: schedule: # Rodar toda quarta-feira às 11h UTC (8h em Brasília no horário padrão) - cron: '0 11 * * 3' - workflow_dispatch: jobs: weekly_run: runs-on: ubuntu-latest + permissions: + contents: write + steps: - uses: actions/checkout@v3 @@ -34,11 +37,18 @@ jobs: cd Bots python bot_Twitter.py + - name: List files (debug) + run: ls -R + + - name: Pull latest changes from main + run: | + git fetch origin main + git merge origin/main + - name: Commit and push anomalias.html run: | git config user.name "GitHub Actions Bot" git config user.email "actions@github.com" git add TestesMapa/anomalias.html git commit -m "Adicionando arquivo anomalias.html gerado automaticamente" - git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:desenvolvimento - + git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:main \ No newline at end of file