File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 44 issues :
55 types : [labeled]
66
7+ # ========== FILA AUTOMÁTICA ==========
8+ # Quando várias issues são aprovadas rapidamente, os workflows
9+ # entram numa fila e são executados em sequência (não em paralelo)
10+ concurrency :
11+ group : apply-translations-queue
12+ cancel-in-progress : false # Espera o anterior terminar, NÃO cancela
13+
714jobs :
815 apply-translations :
916 # Só executa quando a label "approved" é adicionada
5764 Contribuição de @${{ github.event.issue.user.login }}
5865
5966 Co-authored-by: ${{ github.event.issue.user.login }} <${{ github.event.issue.user.id }}+${{ github.event.issue.user.login }}@users.noreply.github.com>"
60- git push origin dev
67+
68+ # ========== PUSH COM RETRY ==========
69+ # Sincroniza antes do push e tenta 3x com backoff exponencial
70+ for attempt in 1 2 3; do
71+ echo "📤 Tentativa $attempt de push..."
72+ git pull --rebase origin dev 2>/dev/null || true
73+ if git push origin dev; then
74+ echo "✅ Push realizado com sucesso!"
75+ break
76+ else
77+ if [ $attempt -lt 3 ]; then
78+ echo "⚠️ Falha no push, aguardando $((attempt * 2))s..."
79+ sleep $((attempt * 2))
80+ else
81+ echo "❌ Falha após 3 tentativas"
82+ exit 1
83+ fi
84+ fi
85+ done
6186
6287 - name : Close Issue with Success
6388 if : steps.apply.outputs.changes_made == 'true'
You can’t perform that action at this time.
0 commit comments