Skip to content

Commit d215dac

Browse files
authored
Fix SNAPSHOT metadata being appended with hyphen instead of plus (#3140)
Co-authored-by: GirixK <GirixK@users.noreply.github.com>
1 parent b379b56 commit d215dac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/auto-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: ./gradlew publish --build-cache
4040
- name: Rename Jars
4141
if: ${{ env.PUBLISH == 'true' }}
42-
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT-$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
42+
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT+$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
4343
- name: Upload Artifacts
4444
if: ${{ env.PUBLISH == 'true' }}
4545
uses: actions/upload-artifact@v4

gradle/scripts/resources.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def mod_url = getConfig("mod_url")
1111
def mod_issue_tracker = getConfig("mod_issue_tracker")
1212

1313
String suffix = System.getenv("VERSION_SUFFIX")
14-
String version_toml = "$version" + (suffix ? "-$suffix" : "")
14+
String version_toml = "$version" + (suffix ? "+$suffix" : "")
1515

1616
tasks.register('printVersion') {
1717
doLast {

0 commit comments

Comments
 (0)