From 20eed89b8931fd8a4e9dbfb70538aea3318ec2bc Mon Sep 17 00:00:00 2001 From: Sebastian Kirsch Date: Fri, 8 Nov 2024 15:35:04 +0100 Subject: [PATCH] Play around with Job summary --- .github/workflows/maven-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 119348b..66a65de 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -23,7 +23,10 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - mvn -B -ntp -Dstyle.color=always release:prepare release:perform + mvn -B -ntp -Dstyle.color=always release:prepare + VERSION=`cat release.properties | grep scm.tag= | cut -d'=' -f2` + mvn -B -ntp -Dstyle.color=always release:perform + echo "Released version ${VERSION}. 🚀" >> $GITHUB_STEP_SUMMARY env: GPG_PASSPHRASE: '' SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}