We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c573c02 commit 0b999aeCopy full SHA for 0b999ae
1 file changed
.github/workflows/default-tests.yml
@@ -147,9 +147,14 @@ jobs:
147
run: |
148
cd "${{env.TEMP_DIR}}"
149
./gradlew -version
150
+ - name: Extract plugin version for testing
151
+ id: plugin_version
152
+ run: |
153
+ PLUGIN_VERSION=$(grep 'def releaseVersion = ' build.gradle | sed 's/.*"\(.*\)".*/\1/')
154
+ echo "version=$PLUGIN_VERSION" >> $GITHUB_OUTPUT
155
- name: Run the local testversion with Gradle
156
157
- ./gradlew clean build --rerun-tasks
158
+ ./gradlew clean build --rerun-tasks -PpluginTestVersion=${{ steps.plugin_version.outputs.version }}
159
- name: Validate if the testversion has produced the desired output
160
run: /bin/bash -c '[[ -f "${{env.TEMP_DIR}}"/build/git.properties ]] && cat "${{env.TEMP_DIR}}"/build/git.properties || exit 1;'
0 commit comments