- #!/bin/bash
- tag="${GITHUB_REF##*/}"
- crate=$(echo $tag | sed 's/-v[0-9].*//g')
- tagPattern="${crate}-v(.+)"
- echo ::group::Configuring changelog generator
- jq '.tag_resolver.filter.pattern="'$tagPattern'" | .tag_resolver.transformer.pattern="'$tagPattern'" | .categories[].labels += ["'$crate'"]' \
- .github/changelog-base.json | tee .github/changelog-config.json
- echo ::endgroup::
|