Skip to content

Commit 1f915f6

Browse files
authored
fix: add changelog.sh (#18)
1 parent 86d6d36 commit 1f915f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/changelog.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -e -o pipefail
3+
4+
root=$(dirname "$(dirname "$0")")
5+
cmd=(git cliff --workdir "$root" --output "$root/CHANGELOG.md" "$@")
6+
7+
if [ "$DRY_RUN" = "true" ]; then
8+
echo "skipping due to dry run: ${cmd[*]}" >&2
9+
exit 0
10+
else
11+
"${cmd[@]}"
12+
fi

0 commit comments

Comments
 (0)