Loading
Extract config
What does this MR do and why?
Main goal of this MR is to extract from generate-release script the configuration part, allowing to reuse it in a different context outside of sylva and/or to have custom configuration for some repos.
Add 4 new inputs:
RELEASE_NOTES_CONFIG_FILE: "$[[ inputs.config_file ]]"
# Also settable at runtime (e.g. exported in a before_script) when the values are only known then
RELEASE_NOTES_PROJECT_ID: "$[[ inputs.project_id ]]"
RELEASE_NOTES_START_TAG: "$[[ inputs.start_tag ]]"
RELEASE_NOTES_END_TAG: "$[[ inputs.end_tag ]]"RELEASE_NOTES_START_TAG / RELEASE_NOTES_END_TAG can be used to visualize a given release in a dry-run for example (we can pass ref/sha and not only tag)
It also add a dry run job to see the output. In order to have something representative it run on the latest 100 commits of sylva-core
The configuration part is now defined into a dedicated file that could be override if needed
Related reference(s)
Edited by Loic Nicolle