mirror of
https://github.com/runelite/plugin-hub.git
synced 2025-12-23 22:48:49 -05:00
package: use commit instead of SNAPSHOT versions
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/
|
||||
key: package-2.0.5
|
||||
key: package-2.0.6
|
||||
- name: prepare
|
||||
run: |
|
||||
pushd package
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/
|
||||
key: upload-2.0.5
|
||||
key: upload-2.0.6
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: manifest_diff
|
||||
|
||||
@@ -450,11 +450,18 @@ public class Plugin implements Closeable
|
||||
{
|
||||
Properties chunk = loadProperties(new File(buildDirectory, "chunk.properties"));
|
||||
|
||||
manifest.setVersion(chunk.getProperty("version"));
|
||||
if (Strings.isNullOrEmpty(manifest.getVersion()))
|
||||
String version = chunk.getProperty("version");
|
||||
if (Strings.isNullOrEmpty(version))
|
||||
{
|
||||
throw new IllegalStateException("version in empty");
|
||||
}
|
||||
|
||||
if (version.endsWith("SNAPSHOT"))
|
||||
{
|
||||
version = commit.substring(0, 8);
|
||||
}
|
||||
|
||||
manifest.setVersion(version);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user