Run the job on every pull request (not only chart changes) to allow
making it a PR merge requirement.
Fetch the main branch and use origin/main because GitHub's checkout
action doesn't set up the main ref.
Improve log formatting and output the version numbers.
Fail the job in the same step. By default, the GitHub UI collapses
every step by default except the failed step, so that should be the
one with actual output.
Additional Context
Part of resolving the issues with #21
Checklist
[ ] 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.
[ ] 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
Includes the following improvements:
origin/main
because GitHub's checkout action doesn't set up themain
ref.Additional Context
Part of resolving the issues with #21
Checklist
feat(chart-name): Add replica support