@vavt/github-action-test 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/latest.yml +25 -9
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
|
@@ -70,18 +70,34 @@ jobs:
|
|
|
70
70
|
|
|
71
71
|
NOTES="$(gh release view "${TAG_NAME}" --json body --jq '.body')"
|
|
72
72
|
DATE="$(date -u +%Y-%m-%d)"
|
|
73
|
+
MARKER='<!-- next-release -->'
|
|
73
74
|
|
|
74
|
-
printf '## %s (%s)\n\n%s\n
|
|
75
|
+
printf '## %s (%s)\n\n%s\n' \
|
|
75
76
|
"${TAG_NAME}" \
|
|
76
77
|
"${DATE}" \
|
|
77
|
-
"${NOTES}"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
"${NOTES}" > /tmp/release-entry.md
|
|
79
|
+
|
|
80
|
+
grep -vF "${MARKER}" CHANGELOG.md > /tmp/changelog-base.md || true
|
|
81
|
+
|
|
82
|
+
FIRST_SECTION_LINE="$(grep -n '^## ' /tmp/changelog-base.md | head -n1 | cut -d: -f1 || true)"
|
|
83
|
+
|
|
84
|
+
if [ -n "${FIRST_SECTION_LINE}" ]; then
|
|
85
|
+
head -n "$((FIRST_SECTION_LINE - 1))" /tmp/changelog-base.md > /tmp/changelog-prefix.md
|
|
86
|
+
tail -n "+${FIRST_SECTION_LINE}" /tmp/changelog-base.md > /tmp/changelog-sections.md
|
|
87
|
+
else
|
|
88
|
+
cp /tmp/changelog-base.md /tmp/changelog-prefix.md
|
|
89
|
+
: > /tmp/changelog-sections.md
|
|
90
|
+
fi
|
|
91
|
+
|
|
92
|
+
{
|
|
93
|
+
cat /tmp/changelog-prefix.md
|
|
94
|
+
printf '\n%s\n\n' "${MARKER}"
|
|
95
|
+
cat /tmp/release-entry.md
|
|
96
|
+
if [ -s /tmp/changelog-sections.md ]; then
|
|
97
|
+
printf '\n'
|
|
98
|
+
cat /tmp/changelog-sections.md
|
|
99
|
+
fi
|
|
100
|
+
} > /tmp/CHANGELOG.md
|
|
85
101
|
|
|
86
102
|
mv /tmp/CHANGELOG.md CHANGELOG.md
|
|
87
103
|
|
package/CHANGELOG.md
CHANGED
|
@@ -18,4 +18,12 @@ All notable changes to this project will be documented in this file.
|
|
|
18
18
|
|
|
19
19
|
**Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.3...v0.0.4
|
|
20
20
|
|
|
21
|
+
## v0.0.5 (2026-02-28)
|
|
22
|
+
|
|
23
|
+
<!-- Release notes generated using configuration in .github/release.yml at v0.0.5 -->
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
**Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.4...v0.0.5
|
|
28
|
+
|
|
21
29
|
<!-- next-release -->
|