From 24e56fd8feaf1384868a24fc68a1629a12dbcdc0 Mon Sep 17 00:00:00 2001 From: MexIT Date: Sun, 5 Jan 2025 16:44:28 +0100 Subject: [PATCH] minor: Update Releases --- .github/workflows/build_iso.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_iso.yml b/.github/workflows/build_iso.yml index bc19873..800ef0f 100644 --- a/.github/workflows/build_iso.yml +++ b/.github/workflows/build_iso.yml @@ -66,10 +66,15 @@ jobs: GH_TOKEN: ${{ github.token }} run: | git config --global --add safe.directory . - echo "### Main changes:" > changelog.txt - git log --reverse --pretty=format:"- %h: %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD | egrep -v 'fix:|minor:|typo:' >> changelog.txt - commits="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/compare/$(git tag --sort=-v:refname | sed -n 2p)...$(git tag --sort=-v:refname | sed -n 1p)" - echo -e "
\n\n**Full Changelog**: $commits" >> changelog.txt + git fetch --tags --force + if git cat-file -t ${{ github.ref_name }} | grep -q '^tag$'; then + git tag -n ${{ github.ref_name }} --format="### %(subject)" > changelog.txt + else + echo "### Main changes:" > changelog.txt + git log --reverse --pretty=format:"- %h: %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD | egrep -v 'fix:|minor:|typo:' >> changelog.txt + commits="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/compare/$(git tag --sort=-v:refname | sed -n 2p)...$(git tag --sort=-v:refname | sed -n 1p)" + echo -e "
\n\n**Full Changelog**: $commits" >> changelog.txt + fi sha256sum *.iso > sha256sums.txt