diff --git a/.github/workflows/build_and_tag.yml b/.github/workflows/build_and_tag.yml index 617e09f..089f2a3 100644 --- a/.github/workflows/build_and_tag.yml +++ b/.github/workflows/build_and_tag.yml @@ -51,9 +51,15 @@ jobs: pwd ${GITHUB_WORKSPACE} chmod +x "${GITHUB_WORKSPACE}/util/release.sh" ./${GIHUB_WORKSPACE}/util/release.sh + - name: Get latest tagged version + id: tagged_version + uses: actions/checkout@v3 + run: | + echo "::set-output name=TAGGED_VERSION::$(git for-each-ref --sort=-creatordate --format='%(refname:short)' refs/tags --count 10 | grep -oP '^eris-(\d+).*' | head -1)" - name: Perform release uses: softprops/action-gh-release@v1 if: ${{ github.ref == 'refs/heads/master' }} with: + tag_name: ${{ steps.tagged_version.outputs.TAGGED_VERSION }} files: | target/*.jar \ No newline at end of file