🤝 Atualizar lista de contribuidores #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🤝 Atualizar Contribuidores | |
on: | |
# Executa semanalmente às segundas-feiras às 9h (UTC) | |
schedule: | |
- cron: '0 9 * * 1' | |
# Executa quando há push na branch main | |
push: | |
branches: | |
- main | |
# Permite execução manual | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-contributors: | |
runs-on: ubuntu-latest | |
name: 📝 Atualizar lista de contribuidores | |
steps: | |
- name: 🔄 Checkout do repositório | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: 🤝 Atualizar contribuidores no README | |
uses: akhilmhdh/[email protected] | |
with: | |
# Configurações básicas | |
image_size: 80 | |
columns_per_row: 8 | |
use_username: true | |
readme_path: 'readme.md' | |
# Configurações de commit | |
commit_message: '🤝 Atualizar lista de contribuidores' | |
committer_username: 'github-actions[bot]' | |
committer_email: 'github-actions[bot]@users.noreply.github.com' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: ✅ Verificar mudanças | |
run: | | |
if git diff --quiet; then | |
echo "✨ Nenhuma alteração detectada na lista de contribuidores" | |
else | |
echo "🎉 Lista de contribuidores atualizada com sucesso!" | |
fi |