Skip to content

Commit

Permalink
Save the full diff as a file
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob authored Feb 16, 2024
1 parent 2bb70d7 commit 6234a82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ current_head=$(git rev-parse HEAD)
git fetch --force origin "$INPUT_BASEREF":"$INPUT_BASEREF" --no-tags
git switch --force "$INPUT_BASEREF"
./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)
java -jar dependency-tree-diff.jar old_diff.txt new_diff.txt >tree_diff.txt

delimiter=$(openssl rand -hex 20)
echo "text-diff<<$delimiter" >> $GITHUB_OUTPUT
echo "$diff" >> $GITHUB_OUTPUT
cat tree_diff.txt >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT

git switch --detach "$current_head"

0 comments on commit 6234a82

Please sign in to comment.