@@ -65,25 +65,27 @@ jobs:
6565 java-package : jdk
6666 - name : Install a test version with Gradle
6767 run : ./gradlew clean publishAllPublicationsToLocalPluginRepositoryRepository
68- - run : echo "TEMP_DIR=$(mktemp -d --tmpdir=/home/runner/work/git-commit-id-gradle-plugin/git-commit-id-gradle-plugin)" >> $GITHUB_ENV
69- - name : " Checkout git-commit-id-gradle-debugging to run actual gradle integration tests"
68+ - name : Setup TEMP_DIR
69+ run : echo "TEMP_DIR=$(mktemp -d --tmpdir=/home/runner/work/git-commit-id-gradle-plugin/git-commit-id-gradle-plugin/git-commit-id-gradle-debugging)" >> $GITHUB_ENV
70+ - name : Checkout git-commit-id-gradle-debugging to run actual gradle integration tests
7071 uses : actions/checkout@v3
7172 with :
7273 submodules : recursive
7374 repository : git-commit-id/git-commit-id-gradle-debugging
7475 path : ${{ env.TEMP_DIR}}
7576 - name : Setup Gradle ${{ matrix.gradle_version }}
7677 run : |
77- cd ${{ env.TEMP_DIR}}/git-commit-id-gradle-debugging
78+ cd ${{ env.TEMP_DIR}}
7879 ./gradle wrapper --gradle-version ${{ matrix.gradle_version }} --distribution-type bin
7980 - name : Verify Setup of Gradle ${{ matrix.gradle_version }}
8081 run : |
81- cd ${{ env.TEMP_DIR}}/git-commit-id-gradle-debugging
82+ cd ${{ env.TEMP_DIR}}
8283 ./gradlew -version
8384 - name : Run the local testversion with Gradle
8485 run : |
85- cd ${{ env.TEMP_DIR}}/git-commit-id-gradle-debugging
86+ cd ${{ env.TEMP_DIR}}
8687 ./gradlew clean build --rerun-tasks
8788 - name : Validate if the testversion has produced the desired output
88- run : /bin/bash -c '[[ -f ${{ env.TEMP_DIR}}/git-commit-id-gradle-debugging/build/git.properties ]] && cat ${{ env.TEMP_DIR}}/git-commit-id-gradle-debugging/build/git.properties || exit 1;'
89- - run : rm -rf ${{ env.TEMP_DIR}}
89+ run : /bin/bash -c '[[ -f ${{ env.TEMP_DIR}}/build/git.properties ]] && cat ${{ env.TEMP_DIR}}/build/git.properties || exit 1;'
90+ - name : Cleanup TEMP_DIR
91+ run : rm -rf ${{ env.TEMP_DIR}}
0 commit comments