feat: align and enhance GitHub Actions workflows#130
Merged
Conversation
- Replace bump2version with bump-my-version - Migrate .bumpversion.cfg to pyproject.toml - Remove CHANGELOG.md (use GitHub release notes instead) - Remove @semantic-release/changelog plugin - Change checkout depth from 0 to 1 in all workflows - Rename publish.yaml to publish.yml for consistency - Improve workflow structure and error handling - Ensure publish only runs on successful release Signed-off-by: Rohit Kumar <Rohit.Kumar64@ibm.com>
d16ec4b to
d6efb36
Compare
Author
Issue with fetch-depth: 1After further review and manager feedback, changing
RecommendationRevert
ReferenceManager's feedback: "Strongly recommend either: Revert to fetch-depth: 0" I will update this PR to fix the fetch-depth issue. |
- Changed fetch-depth from 1 to 0 in create-release.yml - Changed fetch-depth from 1 to 0 in codeql-analysis.yml - Changed fetch-depth from 1 to 0 in publish.yml - Ensures semantic-release has full git history for version calculation - Addresses manager feedback on PR IBM#130 Signed-off-by: Rohit Kumar <Rohit.Kumar64@ibm.com>
IdanAdar
approved these changes
Mar 23, 2026
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.
Summary
Align and enhance GitHub Actions workflows across all SDKs as per requirements.
Changes Made
✅ Replace bump2version with bump-my-version
.releasercto usebump-my-versionwith correct syntaxcreate-release.ymlworkflow to installbump-my-version.bumpversion.cfgconfiguration topyproject.toml.bumpversion.cfgfile✅ Remove CHANGELOG.md
CHANGELOG.mdfile@semantic-release/changelogplugin from.releaserc@semantic-release/changelogdependency frompackage.jsonpyproject.toml✅ Optimize Workflows
fetch-depthfrom 0 to 1 in all workflows (faster clones)publish.yamltopublish.ymlfor consistency✅ Configure GitHub Releases
@semantic-release/githubpluginTesting
✅ Tested in personal fork: https://github.com/Rohit-8541/secrets-manager-python-sdk
Test Results:
fetch-depth: 1Files Changed (9 files)
.bumpversion.cfg- DELETED.github/workflows/codeql-analysis.yml- Updated fetch-depth.github/workflows/create-release.yml- Updated to use bump-my-version.github/workflows/publish.yml- Renamed from .yaml, updated fetch-depth.releaserc- Updated for bump-my-version, removed changelogCHANGELOG.md- DELETEDpackage.json- Removed changelog dependencypyproject.toml- Added bump-my-version config, removed changelog URLibm_secrets_manager_sdk/version.py- Version syncChecklist