Skip to content

Commit

Permalink
feat(ci): improve outputting dependencies if they are different
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Jul 13, 2023
1 parent 4fe3e5e commit 5359bcd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5359bcd

Please sign in to comment.