diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 88c83642d66..b19e0153bb5 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -52,12 +52,18 @@ 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 + 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