Skip to content

Commit

Permalink
update create tag script
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-jaksov-tl committed Oct 9, 2024
1 parent f34ae66 commit ad865a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: '0'

Expand All @@ -31,19 +31,19 @@ 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
uses: actions/create-release@v1
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
run: rm release_notes.md

0 comments on commit ad865a3

Please sign in to comment.