Commit 6093f5f
committed
fix: release notes workflow inserting into front matter
The awk script matched the 1st '---' in releases.md, which is
the YAML front matter opener, not the content separator. This
wedged new entries inside the front matter, breaking the page.
v0.8.1 was the first automated run to hit this.
Fix the awk to count '---' occurrences and insert after the 3rd
(front matter open, front matter close, content separator).
Also add a fallback for empty release bodies: if goreleaser
produces no changelog, generate a commit list from git log
between the previous and current tag. This caused v0.8.1 to
have an empty entry.
Fix releases.md itself by moving the v0.8.1 entry out of the
front matter and populating it with its actual commit.1 parent bb5e647 commit 6093f5f
File tree
2 files changed
+39
-14
lines changed- .github/workflows
- docs-web/docs
2 files changed
+39
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
60 | 78 | | |
61 | 79 | | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
65 | 83 | | |
66 | 84 | | |
67 | | - | |
| 85 | + | |
68 | 86 | | |
69 | 87 | | |
70 | 88 | | |
71 | 89 | | |
72 | 90 | | |
73 | | - | |
74 | 91 | | |
75 | 92 | | |
76 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
77 | 101 | | |
78 | | - | |
| 102 | + | |
| 103 | + | |
79 | 104 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
83 | 109 | | |
84 | 110 | | |
85 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 2 | | |
10 | 3 | | |
11 | 4 | | |
| |||
15 | 8 | | |
16 | 9 | | |
17 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments