Skip to content

Commit

Permalink
Switch tagging approach
Browse files Browse the repository at this point in the history
  • Loading branch information
Kas-tle committed Jul 7, 2021
1 parent 5cd2cbd commit c512281
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c512281

Please sign in to comment.