diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 652c335..e11b760 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,11 @@ jobs: - run: python3 craft.py - run: | + chmod +x ./gitcmd.sh + ./gitcmd.sh + echo "Begin Creating Release..." python3 ./releaser.py > version.txt + echo "Create successful!" cat version.txt - name: Create Release diff --git a/gitcmd.sh b/gitcmd.sh index 39552ee..11eb354 100644 --- a/gitcmd.sh +++ b/gitcmd.sh @@ -1,3 +1,5 @@ +#!/bin/sh + LATEST_TAG=`git tag --sort=refname |tail -n 2 |head -n 1` NEW_TAG=`git tag --sort=refname |tail -n 1` git log --format='%(trailers:key=Type,valueonly,separator=%x20)%x1c%s [%(trailers:key=Issue,valueonly,separator=,)]' $LATEST_TAG..$NEW_TAG | awk -F "\034" '