From ad865a31a1df8ff8a966f6ff93860a03e13c0b8d Mon Sep 17 00:00:00 2001 From: Artyom Jaksov Date: Wed, 9 Oct 2024 17:12:10 +0200 Subject: [PATCH] update create tag script --- .github/workflows/create-tag.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-tag.yml b/.github/workflows/create-tag.yml index c6c4b4d..4ae1d79 100644 --- a/.github/workflows/create-tag.yml +++ b/.github/workflows/create-tag.yml @@ -11,7 +11,7 @@ jobs: tag: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 with: fetch-depth: '0' @@ -31,7 +31,7 @@ jobs: - name: Create changelog diff run: | - sed -n "/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=0 --max-count=1))\]/,/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))\]/{/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))\]/\!p;}" CHANGELOG.md > release_notes.md + sed -n "/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=0 --max-count=1))\]/,/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))\]/p" CHANGELOG.md | sed -e "s/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=0 --max-count=1))\].*\$//" -e "s/^## \[$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))\].*\$//" | sed -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba' > release_notes.md - name: Create release id: create_release @@ -39,11 +39,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.generate_tag.outputs.version }} - release_name: ${{ steps.generate_tag.outputs.version }} + tag_name: ${{ steps.generate_tag.outputs.NEW_TAG }} + release_name: ${{ steps.generate_tag.outputs.NEW_TAG }} body_path: ./release_notes.md draft: false prerelease: false - name: Delete release_notes file - run: rm release_notes.md \ No newline at end of file + run: rm release_notes.md