diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ceee7a..3050291 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,8 @@ jobs: - run: | cd $GITHUB_WORKSPACE ls -al + git fetch + git fetch --tags git tag -l LATEST_TAG=`git tag --sort=refname |tail -n 2 |head -n 1` diff --git a/gitcmd.sh b/gitcmd.sh deleted file mode 100755 index fb4b395..0000000 --- a/gitcmd.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/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" ' - { - gsub(/\[\]$/, "", $2); - if (length($1) == 0) $1=""; - if (!($1 in item_count)) item_count[$1]=0; - items[$1, item_count[$1]]=$2; - item_count[$1]++; - } - END { - for (k in item_count) { - print k; - k2=k; - gsub(/./, "-", k2); - print k2 - for (i=0; i commit_notes \ No newline at end of file