Skip to content

Commit

Permalink
feat: changelog scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Nov 6, 2024
1 parent aa2c35d commit c0d32ae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e -o pipefail

root=$(dirname "$(dirname "$0")")
cmd=(git cliff --workdir "$root" --output "$root/CHANGELOG.md" "$@")

if [ "$DRY_RUN" = "true" ]; then
echo "skipping due to dry run: ${cmd[*]}" >&2
exit 0
else
"${cmd[@]}"
fi

0 comments on commit c0d32ae

Please sign in to comment.