I use the gradle/actions/setup-gradle task with a version matrix gradle-version: ['wrapper', '7.6.4', '8.8']. For the 'wrapper' value, I expected it to use the gradlew wrapper version of Gradle (8.6 in my case, as documented). Instead, it uses a seemingly random (latest?) version of Gradle (Gradle 8.8 in my case).
For the explicitly specified versions 7.6.4 and 8.8, it works correctly, downloading and setting up that Gradle version. The subsequent call togradle build executes with the intended Gradle version. However, for the 'wrapper' version of Gradle, which is Gradle 8.6 in my project, it instead uses Gradle 8.8.
This is the relevant part of my workflow:
jobs:
build:
strategy:
matrix:
gradle-version: ['wrapper', '7.6.4', '8.8']
steps:
# ...
- name: "Setup Gradle ${{ matrix.gradle-version }}"
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ matrix.gradle-version }}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
- name: 'Build'
run: |
gradle build
I use the
gradle/actions/setup-gradletask with a version matrixgradle-version: ['wrapper', '7.6.4', '8.8']. For the'wrapper'value, I expected it to use thegradlewwrapper version of Gradle (8.6 in my case, as documented). Instead, it uses a seemingly random (latest?) version of Gradle (Gradle 8.8 in my case).For the explicitly specified versions 7.6.4 and 8.8, it works correctly, downloading and setting up that Gradle version. The subsequent call to
gradle buildexecutes with the intended Gradle version. However, for the'wrapper'version of Gradle, which is Gradle 8.6 in my project, it instead uses Gradle 8.8.This is the relevant part of my workflow: