diff --git a/.github/workflows/pr-drools-backward-compatibility.yml b/.github/workflows/pr-drools-backward-compatibility.yml index 3673ff73117..b46b7753bee 100644 --- a/.github/workflows/pr-drools-backward-compatibility.yml +++ b/.github/workflows/pr-drools-backward-compatibility.yml @@ -40,6 +40,7 @@ jobs: java-version: ${{ matrix.java-version }} maven-version: ${{ matrix.maven-version }} cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} + allow-snapshots: true - name: Build Drools run: mvn -B clean install -DskipTests - name: Backward Compatibility Test with previous minor version diff --git a/script/utils/get_previous_version.sh b/script/utils/get_previous_version.sh index dab2665f546..78e92f87358 100755 --- a/script/utils/get_previous_version.sh +++ b/script/utils/get_previous_version.sh @@ -8,8 +8,8 @@ micro=$(echo "$current_version" | cut -d'.' -f3 | cut -d'-' -f1) # Decrement the minor version. If minor is 0, then use the same version if [ "$minor" -gt 0 ]; then previous_minor=$((minor - 1)) - # Construct the previous version - previous_version="$major.$previous_minor.0.Final" + # Construct the previous SNAPSHOT version (because the previous Final may not be out yet) + previous_version="$major.$previous_minor.0-SNAPSHOT" else previous_version="$current_version" fi