Skip to content

Commit

Permalink
Copy JAVA_HOME env value
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jan 26, 2024
1 parent 0fd6da1 commit 7ee0d1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7ee0d1a

Please sign in to comment.