@vavt/github-action-test 0.6.0 → 0.7.1
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 +27 -11
- package/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/src/main.jsx +1 -1
|
@@ -95,7 +95,9 @@ jobs:
|
|
|
95
95
|
: > "${FIXES_FILE}"
|
|
96
96
|
: > "${OTHERS_FILE}"
|
|
97
97
|
|
|
98
|
-
while IFS
|
|
98
|
+
while IFS= read -r -d '' FULL_HASH \
|
|
99
|
+
&& IFS= read -r -d '' SUBJECT \
|
|
100
|
+
&& IFS= read -r -d '' BODY; do
|
|
99
101
|
[ -z "${FULL_HASH:-}" ] && continue
|
|
100
102
|
SUBJECT="$(printf '%s' "${SUBJECT}" | sed -E 's/^[[:space:]]+|[[:space:]]+$//g')"
|
|
101
103
|
[ -z "${SUBJECT}" ] && continue
|
|
@@ -130,26 +132,40 @@ jobs:
|
|
|
130
132
|
|
|
131
133
|
SHORT_HASH="$(printf '%s' "${FULL_HASH}" | cut -c1-7)"
|
|
132
134
|
printf -- '- %s ([%s](%s/commit/%s))\n' "${CLEAN_SUBJECT}" "${SHORT_HASH}" "${REPO_URL}" "${FULL_HASH}" >> "${TARGET_FILE}"
|
|
133
|
-
|
|
135
|
+
|
|
136
|
+
BODY_CLEAN="$(printf '%s\n' "${BODY}" \
|
|
137
|
+
| sed 's/\r$//' \
|
|
138
|
+
| sed -E 's/^[[:space:]]+|[[:space:]]+$//g' \
|
|
139
|
+
| sed '/^[[:space:]]*$/d')"
|
|
140
|
+
|
|
141
|
+
if [ -n "${BODY_CLEAN}" ]; then
|
|
142
|
+
while IFS= read -r BODY_LINE; do
|
|
143
|
+
[ -z "${BODY_LINE}" ] && continue
|
|
144
|
+
printf ' %s\n' "${BODY_LINE}" >> "${TARGET_FILE}"
|
|
145
|
+
done <<< "${BODY_CLEAN}"
|
|
146
|
+
fi
|
|
147
|
+
|
|
148
|
+
printf '\n' >> "${TARGET_FILE}"
|
|
149
|
+
done < <(git log "${RANGE}" --no-merges --format='%H%x00%s%x00%b%x00' || true)
|
|
134
150
|
|
|
135
151
|
write_section() {
|
|
136
152
|
local title="$1"
|
|
137
153
|
local file="$2"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
cat "${file}"
|
|
141
|
-
else
|
|
142
|
-
printf -- '- None\n'
|
|
154
|
+
if [ ! -s "${file}" ]; then
|
|
155
|
+
return 1
|
|
143
156
|
fi
|
|
157
|
+
printf '### %s\n\n' "${title}"
|
|
158
|
+
cat "${file}"
|
|
144
159
|
printf '\n'
|
|
160
|
+
return 0
|
|
145
161
|
}
|
|
146
162
|
|
|
147
163
|
{
|
|
148
164
|
printf '## %s (%s)\n\n' "${DISPLAY_VERSION}" "${DATE}"
|
|
149
|
-
write_section 'Features' "${FEATURES_FILE}"
|
|
150
|
-
write_section 'Refactors' "${REFACTORS_FILE}"
|
|
151
|
-
write_section 'Fixed Bugs' "${FIXES_FILE}"
|
|
152
|
-
write_section 'Others' "${OTHERS_FILE}"
|
|
165
|
+
write_section 'Features' "${FEATURES_FILE}" || true
|
|
166
|
+
write_section 'Refactors' "${REFACTORS_FILE}" || true
|
|
167
|
+
write_section 'Fixed Bugs' "${FIXES_FILE}" || true
|
|
168
|
+
write_section 'Others' "${OTHERS_FILE}" || true
|
|
153
169
|
printf '**Full Changelog**: [%s...%s](%s)\n\n' "${COMPARE_FROM}" "${TAG_NAME}" "${COMPARE_URL}"
|
|
154
170
|
printf -- '---\n'
|
|
155
171
|
} > /tmp/release-entry.md
|
package/CHANGELOG.md
CHANGED
|
@@ -5,8 +5,32 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
|
|
9
|
+
|
|
8
10
|
<!-- next-release -->
|
|
9
11
|
|
|
12
|
+
## 0.6.0 (2026-03-01)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- None
|
|
17
|
+
|
|
18
|
+
### Refactors
|
|
19
|
+
|
|
20
|
+
- None
|
|
21
|
+
|
|
22
|
+
### Fixed Bugs
|
|
23
|
+
|
|
24
|
+
- None
|
|
25
|
+
|
|
26
|
+
### Others
|
|
27
|
+
|
|
28
|
+
- ci: 移除多余的issue入口 ([545e99b](https://github.com/imzbf/github-action-test/commit/545e99b6dc9e7d7ca68dc6b43dd6b8d53c4cca29))
|
|
29
|
+
|
|
30
|
+
**Full Changelog**: [v0.5.2...v0.6.0](https://github.com/imzbf/github-action-test/compare/v0.5.2...v0.6.0)
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
10
34
|
## 0.5.2 (2026-03-01)
|
|
11
35
|
|
|
12
36
|
### Features
|
package/package.json
CHANGED
package/src/main.jsx
CHANGED