Skip to content

Commit

Permalink
feat: Get release version
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanDimanov-MoveDigital authored Apr 7, 2022
1 parent 0b8306f commit 35f1bda
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/deploy_after_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,18 @@ jobs:
run: |
echo github.event_name = ${{ github.event_name }}
echo github.event.action = ${{ github.event.action }}
git for-each-ref --sort=-taggerdate --format '%(refname:lstrip=2)' --count=1 refs/tags
echo $(git for-each-ref --sort=-taggerdate --format '%(refname:lstrip=2)' --count=1 refs/tags)
- name: Generate release version
id: releaseVersion
run: |
echo github.event_name = ${{ github.event_name }}
echo github.event.action = ${{ github.event.action }}
echo $(git for-each-ref --sort=-taggerdate --format '%(refname:lstrip=2)' --count=1 refs/tags)
export VERSION=$(git for-each-ref --sort=-taggerdate --format '%(refname:lstrip=2)' --count=1 refs/tags | sed 's/v//)
echo "::set-output name=version::${VERSION}"
- name: Debug
run: |
echo ${{ steps.releaseVersion.outputs.version }}

0 comments on commit 35f1bda

Please sign in to comment.