Fixes #12. For every chart directory with changes, the script obtains the previous version string from the main branch as well as the current version string from the working directory, then compares them. If the current version is not strictly greater, the job fails.
Additional Context
This implementation relies on GitHub being configured to prevent merging of non-rebased PRs. Otherwise, two PRs could be made with the same version increment, and once both of their CIs pass, they could both be merged without the later one receiving another version bump.
Checklist
[X] The chart version in Chart.yaml has been updated according to semantic versioning (semver). This update is not required if the changes only impact README.md files.
[X] All variables are document in the Chart's values.yaml and README.md files.
[X] The pull request title meets the Conventional Commits specification and includes the chart name, for example: feat(chart-name): Add replica support
Description
Fixes #12. For every chart directory with changes, the script obtains the previous version string from the main branch as well as the current version string from the working directory, then compares them. If the current version is not strictly greater, the job fails.
Additional Context
This implementation relies on GitHub being configured to prevent merging of non-rebased PRs. Otherwise, two PRs could be made with the same version increment, and once both of their CIs pass, they could both be merged without the later one receiving another version bump.
Checklist
feat(chart-name): Add replica support