#!/bin/sh -ue # # This script generates the release notes "wazero" for a specific release tag. # .github/workflows/release_notes.sh v1.3.0 tag=$1 prior_tag=$(git tag -l 'v*'|sed "/${tag}/,+10d"|tail -1) if [ -n "${prior_tag}" ]; then range="${prior_tag}..${tag}" else range=${tag} fi git config log.mailmap true changelog=$(git log --format='%h %s %aN, %(trailers:key=co-authored-by)' "${range}") # strip the v off the tag name more shell portable than ${tag:1} version=$(echo "${tag}" | cut -c2-100) || exit 1 cat <