Skip to content

Update README with Milestone Status #8

Update README with Milestone Status

Update README with Milestone Status #8

Workflow file for this run

name: Update README with Milestone Status
on:
schedule:
- cron: "0 0 * * *" # Executa diariamente à meia-noite
workflow_dispatch: # Permite execução manual
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout do repositório
uses: actions/checkout@v3
- name: Configurar Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Instalar dependências
run: npm install axios dotenv
- name: Executar script de atualização do README
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: node update_readme.js
- name: Commit e push das mudanças
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add docs/README.md
git commit -m "Atualizar status das milestones no README"
git push https://x-access-token:${MY_GITHUB_TOKEN}@github.com/LeonardoReis86/Includify.git