diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69e7caf..17444e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,10 +91,9 @@ jobs: - name: Create version tag if: steps.tag.outputs.name != '' run: | - HEAD_TAG=$(git tag -l | grep -v "v*" | sort -V | tail -2 | head -1) git tag -a "${{steps.tag.outputs.name}}" -m "release version ${{steps.tag.outputs.name}}" git push origin "${{steps.tag.outputs.name}}" - gh release create ${{steps.tag.outputs.name}} --generate-notes --notes-start-tag $HEAD_TAG + gh release create ${{steps.tag.outputs.name}} --generate-notes --notes-start-tag $(git tag -l "v*.*" | sort -V | tail -2 | head -1) env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}