Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/sync-main-to-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,21 @@ jobs:
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
git checkout -B $BRANCH_NAME origin/develop

# Attempt to merge main into the sync branch.
# The 'if' statement handles the exit code, so the step won't fail on merge conflicts.
# Tenta fazer o merge da 'main' na branch de sincronização.
# A estrutura 'if/else' trata o código de saída, então o passo não falhará em caso de conflitos.
if git merge origin/main --allow-unrelated-histories --no-edit -m "chore: sync main back to develop"; then
echo "Merge successful without conflicts."
# Se o merge for bem-sucedido e não houver conflitos.
echo "Merge da main para a branch de sync foi bem-sucedido, sem conflitos."
else
echo "::warning::Merge failed, likely due to conflicts. Committing files with conflict markers for manual resolution."
# After a failed merge, files with conflicts are in the working directory.
# We add and commit them to be resolved in the PR.
# Se o merge falhar (geralmente por conflitos).
echo "::warning::O merge falhou, provavelmente devido a conflitos. Arquivos com marcadores de conflito serão commitados para resolução manual."
# Após uma falha de merge, os arquivos com conflitos estão no diretório de trabalho.
# Adicionamos e commitamos esses arquivos para que possam ser resolvidos no Pull Request.
git add .
git commit -m "chore: sync main with conflicts for manual resolution"
git commit -m "chore: Sincroniza main com conflitos para resolução manual"
fi

# Faz o push do resultado para o repositório, seja um merge limpo ou com conflitos.
git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git HEAD:$BRANCH_NAME

- name: Create or Update Pull Request
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## [1.4.3](https://github.com/JaegerCaiser/mrdeveloper/compare/v1.4.2...v1.4.3) (2025-11-29)
## [1.4.3-beta.1](https://github.com/JaegerCaiser/mrdeveloper/compare/v1.4.2...v1.4.3-beta.1) (2025-11-29)


### Bug Fixes

* Corrige permissões e autenticação no workflow de sync ([f86d53b](https://github.com/JaegerCaiser/mrdeveloper/commit/f86d53b0e765627fd4b8612cdbde36e5bafcfe5f))
* **sync-workflow:** Corrige lógica de merge com else duplicado ([6ed025c](https://github.com/JaegerCaiser/mrdeveloper/commit/6ed025c268299f2e82098eb064cf159867713fb1))

## [1.4.2](https://github.com/JaegerCaiser/mrdeveloper/compare/v1.4.1...v1.4.2) (2025-11-29)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mrdeveloper",
"version": "1.4.3",
"version": "1.4.3-beta.1",
"type": "module",
"packageManager": "[email protected]",
"homepage": "https://www.mrdeveloper.com.br/",
Expand Down