[TOOLS] Use git-chglog for changelog

This commit is contained in:
Carmelo Messina
2025-01-26 15:00:55 +01:00
parent 9ef701990e
commit 9f1ba95558
3 changed files with 39 additions and 7 deletions
+5 -7
View File
@@ -17,11 +17,15 @@ on:
description: 'draft? [true/false]'
required: true
default: 'false'
comment:
description: 'comment'
required: true
env:
CROMITE_SHA: ${{ github.event.inputs.sha }}
REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true
COMMENT: ${{ github.event.inputs.comment }}
jobs:
release:
@@ -48,9 +52,6 @@ jobs:
BRANCH=$(curl https://github.com/uazo/cromite/branch_commits/$CROMITE_SHA | ./pup -p li.branch:last-child a text{} | xargs)
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz
tar xfz gh_2.18.1_linux_amd64.tar.gz
- name: Checkout 'uazo/cromite'
uses: actions/checkout@v2
with:
@@ -71,10 +72,7 @@ jobs:
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
echo "\`\`\`" >note
# echo "this is not the official release of bromite but a test version." >>note
# echo "you can try it at your own risk." >>note
echo "\`\`\`" >>note
echo $COMMENT >note
$GH release create $VERSION-$CROMITE_SHA --notes-file note -d