chore: replace release-drafter workflow #156
Draft
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.
I generated the CHANGELOG doc which summarizes all previous releases.
Instead of using release-drafter, this introduces 3 workflows:
labeler.yml
A reusable workflow that employs actions/labeler to auto manage certain labels based on branch name and changed files. It also has a step to add labels based on PR title (using gh-cli). This workflow is designed to be a replacement of the auto-labeler behavior in release-drafter.
The config for actions/labeler resides in this repo under
.github/labeler.yml.unreleased-summary.yml
A reusable workflow that will summarize unreleased changes in the run's summary (
GITHUB_STEP_SUMMARY).tag-release.yml
A manually-triggered workflow that invokes the tag-release.nu script (primarily designed to be executed in CI).
This tag-release workflow will take input:
component(optional): The version component to bump. Supported values arecpp-linter/.github/workflows/tag-release.yml
Lines 15 to 19 in 22a1041
autois selected (the default value), the version will be bumped according to the unreleased changes (via git-cliff bump policy in .github/cliff.toml). Observe the step summary from the unreleased-summary.yml workflow because it uses the auto version bump feature.nu .github/workflows/tag-release.nu -h