From c512281fc952a895994f575e7e9bc49fec095878 Mon Sep 17 00:00:00 2001 From: Kastle <26531652+Kas-tle@users.noreply.github.com> Date: Tue, 6 Jul 2021 22:59:18 -0700 Subject: [PATCH] Switch tagging approach --- .github/workflows/maven.yml | 12 +++++------- src/main/java/plugin.yml | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 6b6b69e..6d5ee22 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,6 +18,9 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Get previous tag + id: get-previous-tag + uses: actions-ecosystem/action-get-latest-tag@v1 - name: Get SNW Version from plugin.yml id: lookupSNWVersion uses: mikefarah/yq@master @@ -30,11 +33,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} tag_prefix: '' custom_tag: ${{ steps.lookupSNWVersion.outputs.result }} - - name: Get version information - id: version - uses: ncipollo/semantic-version-action@v1 - with: - tag: ${{ steps.lookupSNWVersion.outputs.result }} - name: Set up JDK 11 uses: actions/setup-java@v1 with: @@ -59,8 +57,8 @@ jobs: path: staging/snwplugin-*.jar - name: Generate release diff env: - BEGIN_COMMIT: ${{ steps.tag_version.outputs.previous_tag }} - END_COMMIT: ${{ steps.version.outputs.tag }} + BEGIN_COMMIT: ${{ steps.get-previous-tag.outputs.tag }} + END_COMMIT: ${{ steps.lookupSNWVersion.outputs.result }} run: git fetch --tags --force && git log --pretty=format:"* %s (%h)" ${BEGIN_COMMIT}..${END_COMMIT} > release_notes.md - name: Create release uses: ncipollo/release-action@v1 diff --git a/src/main/java/plugin.yml b/src/main/java/plugin.yml index e3330db..f3e62b6 100644 --- a/src/main/java/plugin.yml +++ b/src/main/java/plugin.yml @@ -1,5 +1,5 @@ name: snwplugin -version: 0.0.5 +version: 0.0.6 authors: [JakeDaDream, RealInstantRamen, andyinnie, _Kastle laughed at me] main: me.jakedadream.snwplugin.snwplugin api-version: 1.16