Skip to content

Commit

Permalink
CI: Integração contínua
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-bs committed Jan 29, 2025
1 parent 7d60d20 commit 2874a38
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/weekly_run_bot_Twitter.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

0 comments on commit 2874a38

Please sign in to comment.