Skip to content

Commit d69243d

Browse files
committed
fix gha 2
1 parent 0681bdf commit d69243d

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Publish mod version
88
on:
99
workflow_dispatch:
1010
inputs:
11-
tag_version:
11+
version:
1212
description: 'Mod version'
1313
required: true
1414
release_type:
@@ -45,18 +45,6 @@ jobs:
4545
file_pattern: gradle.properties
4646
tagging_message: "v${{ github.event.inputs.version }}"
4747

48-
- name: Generate Changelog
49-
run: |
50-
echo "### Changelog ${{ github.event.inputs.version }}-${{ github.event.inputs.release-type }}" > CHANGELOG.md
51-
if git describe --tags --abbrev=0 > /dev/null 2>&1; then
52-
latest_tag=$(git describe --tags --abbrev=0)
53-
previous_tag=$(git describe --tags --abbrev=0 ${latest_tag}^)
54-
changelog=$(git log --pretty=format:'- %s' --oneline --decorate --decorate-refs=0 ${previous_tag}..${latest_tag})
55-
echo "${changelog}" >> CHANGELOG.md
56-
else
57-
echo "- No tags found" >> CHANGELOG.md
58-
fi
59-
6048
- name: Setup Java
6149
uses: actions/setup-java@v3
6250
with:
@@ -82,10 +70,9 @@ jobs:
8270

8371
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
8472
files-secondary: build/libs/*-@(dev|sources|javadoc).jar
85-
name: GroovyScript-${{ github.event.inputs.tag_version }}
86-
version: ${{ github.event.inputs.tag_version }}
73+
name: GroovyScript-${{ github.event.inputs.version }}
74+
version: ${{ github.event.inputs.version }}
8775
version-type: ${{ github.event.inputs.release_type }}
88-
changelog-file: CHANGELOG.md
8976
loaders: |
9077
forge
9178
game-versions: |

0 commit comments

Comments
 (0)