Commit 3ad43e6
committed
fix: handle edge cases in discord release notification
- Skip notification when GITHUB_REF is not a tag (e.g. workflow_dispatch)
to avoid producing a nonsensical version string
- Fall back to last 20 commits when PREV_TAG is empty (first release)
to avoid git log failing on an invalid "..HEAD" range
Made-with: Cursor1 parent 3f40bb8 commit 3ad43e6
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
219 | 224 | | |
220 | 225 | | |
221 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
| |||
0 commit comments