Skip to content

Commit

Permalink
feat: show latest tag in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luizpcarvalho committed Jul 19, 2022
1 parent 9bc732d commit 7988001
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/conventional-changelog-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ jobs:
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
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/\^{}//'

0 comments on commit 7988001

Please sign in to comment.