diff options
| -rw-r--r-- | .github/workflows/nightly.yaml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 755b8c8..33de763 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -27,9 +27,8 @@ jobs: - name: Compute nightly version id: version run: | - BASE_VERSION=$(grep ' version = ' build.gradle.kts | sed 's/.*version = "\(.*\)"/\1/' | sed "s/findProperty.*?: \"\(.*\)\"/\1/") - # Fallback: extract version from the default value - if [ -z "$BASE_VERSION" ] || echo "$BASE_VERSION" | grep -q 'findProperty'; then + BASE_VERSION=$(grep '?: "' build.gradle.kts | head -1 | sed 's/.*?: "\(.*\)"/\1/') + if [ -z "$BASE_VERSION" ]; then BASE_VERSION="1.0.0" fi SHORT_HASH=$(git rev-parse --short HEAD) @@ -51,7 +50,7 @@ jobs: - name: Build with shadowJar run: | ./gradlew :platform-paper:shadowJar :platform-velocity:shadowJar \ - -Pversion=${{ steps.version.outputs.version }} \ + -Pversion="${{ steps.version.outputs.version }}" \ -PisNightly=true \ --parallel --no-daemon |
