diff --git a/.github/workflows/conventional-changelog-action.yml b/.github/workflows/conventional-changelog-action.yml index 60be10e..beb26db 100644 --- a/.github/workflows/conventional-changelog-action.yml +++ b/.github/workflows/conventional-changelog-action.yml @@ -30,4 +30,13 @@ jobs: with: tag_name: ${{ steps.changelog.outputs.tag }} release_name: ${{ steps.changelog.outputs.tag }} - body: ${{ steps.changelog.outputs.clean_changelog }} \ No newline at end of file + body: ${{ steps.changelog.outputs.clean_changelog }} + + old-version: + name: Show old version + runs-on: ubuntu-latest + + steps: + - name: Get latest tag + run: | + git ls-remote --tags --sort='v:refname' origin | tail -n1 | sed 's/.*\///; s/\^{}//' \ No newline at end of file