Skip to content

Commit

Permalink
test with the previous SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
tkobayas committed Aug 28, 2023
1 parent 43a27aa commit da293f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-drools-backward-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions script/utils/get_previous_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da293f3

Please sign in to comment.