Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Jun 30, 2025

This pull request updates the .github/workflows/release-spec.yml file to improve the logic for determining when API specification changes should trigger a release to Bump.sh. The changes introduce a new check to ensure that only significant modifications to the v2.json file (beyond minor metadata updates) result in a release.

Workflow Enhancements:

  • Added a new step, Check if changes should be deployed to bump.sh, to analyze the number of changed lines in the openapi/v2.json file. This ensures that minor updates, such as metadata changes, do not trigger a release. ([.github/workflows/release-spec.ymlR160-R175](https://github.com/mongodb/openapi/pull/792/files#diff-aea44faec3c0b85ba535263f9b540a317c4ab32d8a8c221871a5b231fc4468b1R160-R175))
  • Updated the outputs section to include a new bump_release output, which reflects whether significant changes were detected. ([.github/workflows/release-spec.ymlR109](https://github.com/mongodb/openapi/pull/792/files#diff-aea44faec3c0b85ba535263f9b540a317c4ab32d8a8c221871a5b231fc4468b1R109))
  • Modified the if condition for the release-bump-sh job to rely on the new bump_release output instead of changes_detected. ([.github/workflows/release-spec.ymlL200-R217](https://github.com/mongodb/openapi/pull/792/files#diff-aea44faec3c0b85ba535263f9b540a317c4ab32d8a8c221871a5b231fc4468b1L200-R217))## Proposed changes

@andreaangiolillo andreaangiolillo marked this pull request as ready for review June 30, 2025 17:30
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner June 30, 2025 17:30
@andreaangiolillo andreaangiolillo merged commit 14b7506 into main Jul 1, 2025
4 checks passed
@andreaangiolillo andreaangiolillo deleted the update_foas_release_to_deploy_bump_only_when_needed branch July 1, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants