Skip to content

Commit

Permalink
feat(ci): improve outputting dependencies if they are different (#3298)
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger authored Jul 13, 2023
1 parent 4fe3e5e commit caaf554
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,20 @@ jobs:
echo "::error file=DEPENDENCIES,title=Rejected Dependencies found::Some dependencies are marked 'rejected', they cannot be used"
exit 1
fi
- name: print expected DEPENDENCIES file
run: |
cat DEPENDENCIES-gen
- name: Check for differences
run: |
diff DEPENDENCIES DEPENDENCIES-gen
if diff DEPENDENCIES DEPENDENCIES-gen ; then
echo "DEPENDENCIES up-do-date"
else
diff DEPENDENCIES DEPENDENCIES-gen
echo "------------------------------------------------------------"
echo "Please copy the following content back to DEPENDENCIES"
cat DEPENDENCIES-gen
echo "end of content"
echo "::error file=DEPENDENCIES,title=Dependencies outdated::The DEPENDENCIES file was outdated and must be regenerated. Check the output of this job for more information"
exit 1
fi

Dependency-Analysis:
runs-on: ubuntu-latest
Expand Down

0 comments on commit caaf554

Please sign in to comment.