Commit cb4463f
committed
Change: Replace git-release Docker action with gh release + getChangelog (#10)
antonyurchenko/git-release hasn't been updated since Jan 2024 and ran
its own independent Keep a Changelog parser, separate from the one
already configured via org.jetbrains.changelog for patching. Using two
different parsers for the same file risked them disagreeing on what
counts as a valid section.
Replaced it with plain `gh release create`/`gh release delete` (already
available on runners, no Docker pull), fed by the changelog plugin's
own `getChangelog` task:
- Tag-triggered runs: `getChangelog --project-version=X` extracts that
version's notes, `gh release create` publishes the tagged release.
- Branch-triggered runs: `getChangelog --unreleased` extracts the
current Unreleased content, and the `latest-snapshot` pre-release is
deleted and recreated pointing at the new commit (same "update in
place" behavior git-release provided via PRE_RELEASE/UNRELEASED).
Verified `getChangelog --no-header --output-file` locally for both the
--project-version and --unreleased cases against the real changelog:
clean section content, no header line, no reference-link footer -
ready to use directly as release notes.1 parent 8e78c9a commit cb4463f
2 files changed
Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
0 commit comments