@vavt/github-action-test 0.1.0 → 0.2.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 +49 -5
- package/CHANGELOG.md +11 -1
- package/package.json +1 -1
- package/src/main.jsx +1 -1
|
@@ -63,7 +63,9 @@ jobs:
|
|
|
63
63
|
'<!-- next-release -->' > CHANGELOG.md
|
|
64
64
|
fi
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
DISPLAY_VERSION="${TAG_NAME#v}"
|
|
67
|
+
|
|
68
|
+
if grep -q "^## ${TAG_NAME} (" CHANGELOG.md || grep -q "^## ${DISPLAY_VERSION} (" CHANGELOG.md; then
|
|
67
69
|
echo "CHANGELOG already contains ${TAG_NAME}, skip update."
|
|
68
70
|
exit 0
|
|
69
71
|
fi
|
|
@@ -72,10 +74,52 @@ jobs:
|
|
|
72
74
|
DATE="$(date -u +%Y-%m-%d)"
|
|
73
75
|
MARKER='<!-- next-release -->'
|
|
74
76
|
|
|
75
|
-
printf '
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
77
|
+
printf '%s\n' "${NOTES}" | sed 's/\r$//' > /tmp/release-notes.raw.md
|
|
78
|
+
|
|
79
|
+
sed \
|
|
80
|
+
-e "/^## What's Changed$/d" \
|
|
81
|
+
-e '/^## New Contributors$/,/^\*\*Full Changelog\*\*/d' \
|
|
82
|
+
-e '/^\*\*Full Changelog\*\*/d' \
|
|
83
|
+
-e 's/^\* /- /' \
|
|
84
|
+
/tmp/release-notes.raw.md > /tmp/release-notes.cleaned.md
|
|
85
|
+
|
|
86
|
+
awk '
|
|
87
|
+
BEGIN { started = 0 }
|
|
88
|
+
{
|
|
89
|
+
if (!started && $0 ~ /^[[:space:]]*$/) {
|
|
90
|
+
next
|
|
91
|
+
}
|
|
92
|
+
started = 1
|
|
93
|
+
lines[++n] = $0
|
|
94
|
+
}
|
|
95
|
+
END {
|
|
96
|
+
while (n > 0 && lines[n] ~ /^[[:space:]]*$/) {
|
|
97
|
+
n--
|
|
98
|
+
}
|
|
99
|
+
for (i = 1; i <= n; i++) {
|
|
100
|
+
print lines[i]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
' /tmp/release-notes.cleaned.md > /tmp/release-notes.trimmed.md
|
|
104
|
+
|
|
105
|
+
mv /tmp/release-notes.trimmed.md /tmp/release-notes.cleaned.md
|
|
106
|
+
|
|
107
|
+
if [ ! -s /tmp/release-notes.cleaned.md ]; then
|
|
108
|
+
printf '### Changes\n\n- Internal maintenance updates.\n' > /tmp/release-notes.cleaned.md
|
|
109
|
+
elif ! grep -q '^### ' /tmp/release-notes.cleaned.md; then
|
|
110
|
+
{
|
|
111
|
+
printf '### Changes\n\n'
|
|
112
|
+
cat /tmp/release-notes.cleaned.md
|
|
113
|
+
} > /tmp/release-notes.with-section.md
|
|
114
|
+
mv /tmp/release-notes.with-section.md /tmp/release-notes.cleaned.md
|
|
115
|
+
fi
|
|
116
|
+
|
|
117
|
+
{
|
|
118
|
+
printf '## %s (%s)\n\n' "${DISPLAY_VERSION}" "${DATE}"
|
|
119
|
+
printf -- '---\n\n'
|
|
120
|
+
cat /tmp/release-notes.cleaned.md
|
|
121
|
+
printf '\n'
|
|
122
|
+
} > /tmp/release-entry.md
|
|
79
123
|
|
|
80
124
|
grep -vF "${MARKER}" CHANGELOG.md > /tmp/changelog-base.md || true
|
|
81
125
|
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
<!-- next-release -->
|
|
7
|
+
|
|
8
|
+
## v0.1.0 (2026-02-28)
|
|
9
|
+
|
|
10
|
+
<!-- Release notes generated using configuration in .github/release.yml at v0.1.0 -->
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
**Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.5...v0.1.0
|
|
15
|
+
|
|
5
16
|
## v0.0.3 (2026-02-28)
|
|
6
17
|
|
|
7
18
|
<!-- Release notes generated using configuration in .github/release.yml at v0.0.3 -->
|
|
@@ -26,4 +37,3 @@ All notable changes to this project will be documented in this file.
|
|
|
26
37
|
|
|
27
38
|
**Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.4...v0.0.5
|
|
28
39
|
|
|
29
|
-
<!-- next-release -->
|
package/package.json
CHANGED
package/src/main.jsx
CHANGED