feat: automate the version bump workflow - #1321
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new GitHub Actions workflow (.github/workflows/bump-version.yml) to validate a semantic version input, update version strings across specified project files via sed, verify changes, and either open a PR on a new branch or push directly to master based on an input flag. Changes
Sequence Diagram(s)sequenceDiagram
actor Dev as Developer
participant GH as GitHub Actions (Workflow)
participant Repo as Repository
participant Files as Versioned Files
participant PR as Pull Request
Dev->>GH: Dispatch workflow with inputs (new_version, create_pr)
GH->>Repo: Checkout (full history)
GH->>GH: Validate new_version (X.Y.Z)
GH->>Repo: Read current version from releng/.../pom.xml
GH->>Files: Update version in MANIFEST.MF, feature.xml, pom.xml, idf.product
GH->>GH: Verify updated patterns in all targets
alt create_pr == true
GH->>Repo: Create branch bump-version-${NEW_VERSION}
GH->>Repo: Commit and push changes
GH->>PR: Open PR with summary
else create_pr == false
GH->>Repo: Commit to master and push
end
note over GH,Repo: Abort on invalid version or failed verification
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Please include a summary of the change and which issue is fixed.
Fixes # (IEP-XXX)
Type of change
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Dependent components impacted by this PR:
Checklist
Summary by CodeRabbit