Add GitHub Actions workflow for syncing fork branches and update dependencies - #277
Open
mercyblitz wants to merge 7 commits into
Open
Add GitHub Actions workflow for syncing fork branches and update dependencies#277mercyblitz wants to merge 7 commits into
mercyblitz wants to merge 7 commits into
Conversation
Introduce a new GitHub Actions workflow that keeps fork branches aligned with their upstream parent. It first checks whether the repo is a fork, then fetches origin/upstream and syncs matching branches only when safe: branches missing in upstream, already up to date, or ahead in the fork are skipped. The workflow runs on pushes to main/dev/dev-1.x and every 5 minutes, and reports synced/skipped/failed counts with a non-zero exit on push failures.
Updates the Maven parent POM version in `pom.xml` from `0.3.11` to `0.3.12` to align this project with the latest shared build configuration.
Update the project parent POM to the newer microsphere-build release 0.3.14. This keeps the build aligned with the latest parent configuration and dependency management.
Update the parent Maven configuration to use microsphere-java 0.3.18 instead of 0.3.17. This keeps the project aligned with the latest upstream dependency version.
Update the parent BOM to use microsphere-logging 0.2.1 instead of 0.2.0. This brings in the newer logging dependency version for compatibility and fixes included in the upstream release.
Update the parent POM to use Jackson 2.22.2 instead of 2.21.3. This keeps the project aligned with the newer upstream dependency version.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This pull request introduces a new GitHub Actions workflow to automatically sync branches from the upstream repository and updates project dependency versions for improved compatibility and stability.
CI/CD Automation:
.github/workflows/sync-branches-from-upstream.yml, a workflow that automatically syncs all branches in the forked repository from the upstream repository every 5 minutes or on pushes to main development branches. The workflow ensures only branches that exist in both fork and upstream are synced, and skips branches that are ahead in the fork to prevent overwriting changes.Dependency Version Updates:
microsphere-javato version0.3.18andmicrosphere-loggingto version0.2.1inmicrosphere-spring-parent/pom.xmlfor the latest bug fixes and features.0.3.14inpom.xmlfor improved build tooling and dependency management.