Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): improve outputting dependencies if they are different #3298

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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