diff --git a/.github/workflows/deploy_after_release.yaml b/.github/workflows/deploy_after_release.yaml index 9ffbcd4..3f376e9 100644 --- a/.github/workflows/deploy_after_release.yaml +++ b/.github/workflows/deploy_after_release.yaml @@ -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 }}