Skip to content

Commit

Permalink
Merge pull request #49 from luizpcarvalho/feat/workflow-show-old-version
Browse files Browse the repository at this point in the history
feat: show latest tag in workflow
  • Loading branch information
luizpcarvalho authored Jul 19, 2022
2 parents b2d9b61 + 7988001 commit f9440af
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 f9440af

Please sign in to comment.