We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7828c0 commit 1a60d6fCopy full SHA for 1a60d6f
1 file changed
.github/workflows/body.sh
@@ -13,9 +13,14 @@ changes() {
13
fi
14
}
15
16
-git log "$(git describe --tags --abbrev=0 @^)"..@ \
+git log "$(git describe --tags --abbrev=0)"..@ \
17
--pretty=format:" - [\`%h\`](../../commit/%H) - %s" > commits
18
19
+if [ ! -s commits ]; then
20
+ echo "No new commits since last tag: impossible to create changelog"
21
+ exit 1
22
+fi
23
+
24
echo "body<<EOF"
25
changes ":rocket: New features" "feat"
26
changes ":bug: Fixes" "fix"
0 commit comments