File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,14 @@ jobs:
147147 run : |
148148 cd "${{env.TEMP_DIR}}"
149149 ./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
150155 - name : Run the local testversion with Gradle
151156 run : |
152157 cd "${{env.TEMP_DIR}}"
153- ./gradlew clean build --rerun-tasks
158+ ./gradlew clean build --rerun-tasks -PpluginTestVersion=${{ steps.plugin_version.outputs.version }}
154159 - name : Validate if the testversion has produced the desired output
155160 run : /bin/bash -c '[[ -f "${{env.TEMP_DIR}}"/build/git.properties ]] && cat "${{env.TEMP_DIR}}"/build/git.properties || exit 1;'
You can’t perform that action at this time.
0 commit comments