From 798800199cd2346a206b80676791d84820c97e1e Mon Sep 17 00:00:00 2001 From: Luiz Paulo Nascimento Carvalho Date: Tue, 19 Jul 2022 16:59:41 -0300 Subject: [PATCH] feat: show latest tag in workflow --- .github/workflows/conventional-changelog-action.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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