diff --git a/action.yml b/action.yml index 47a2ed3..350d23c 100644 --- a/action.yml +++ b/action.yml @@ -42,7 +42,8 @@ runs: INPUT_BASEREF: ${{ github.base_ref }} INPUT_BUILD_ROOT_DIR: ${{ inputs.build-root-directory }} INPUT_VERSION: ${{ inputs.lib-version }} - ADDITIONAL_GRADLE_ARGUMENTS: ${{ inputs.additional-gradle-arguments }} + INPUT_ADDITIONAL_GRADLE_ARGUMENTS: ${{ inputs.additional-gradle-arguments }} INPUT_DEBUG: ${{ inputs.debug }} + JAVA_HOME: ${{ env.JAVA_HOME }} run: $GITHUB_ACTION_PATH/entrypoint.sh shell: bash diff --git a/entrypoint.sh b/entrypoint.sh index d38826a..a35e1c8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,14 +18,14 @@ fi if [ "$INPUT_DEBUG" == "true" ]; then echo "download finished" - echo $JAVA_HOME + echo "$JAVA_HOME" java -version ls -al fi -./gradlew $ADDITIONAL_GRADLE_ARGUMENTS "$INPUT_PROJECT":dependencies --configuration "$INPUT_CONFIGURATION" >new_diff.txt +./gradlew "$INPUT_ADDITIONAL_GRADLE_ARGUMENTS" "$INPUT_PROJECT":dependencies --configuration "$INPUT_CONFIGURATION" >new_diff.txt git fetch --force origin "$INPUT_BASEREF":"$INPUT_BASEREF" --no-tags git switch --force "$INPUT_BASEREF" -./gradlew $ADDITIONAL_GRADLE_ARGUMENTS "$INPUT_PROJECT":dependencies --configuration "$INPUT_CONFIGURATION" >old_diff.txt +./gradlew "$INPUT_ADDITIONAL_GRADLE_ARGUMENTS" "$INPUT_PROJECT":dependencies --configuration "$INPUT_CONFIGURATION" >old_diff.txt diff=$(java -jar dependency-tree-diff.jar old_diff.txt new_diff.txt)