Skip to content

Commit

Permalink
different way to check for a diff
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Aug 2, 2024
1 parent 0be0442 commit 3d884df
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/dependencies_matches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ jobs:
- name: prepare
run: |
set -x
pushd external/polyseed
echo "EXTERNAL_POLYSEED=$(git rev-parse HEAD)" >> $GITHUB_ENV
popd
pushd ${{ matrix.coin }}/contrib/depends
make download # sorry, this is the easiest way
mkdir sources/polyseed
Expand All @@ -69,8 +66,8 @@ jobs:
popd
- name: diff
run: |
OUTPUT=$(diff -ra external/polyseed ${{ matrix.coin }}/contrib/depends/sources/polyseed | grep -v .git)
if [[ ! "x$OUTPUT" == "x" ]];
OUTPUT=$(diff -ra external/polyseed ${{ matrix.coin }}/contrib/depends/sources/polyseed | grep -v .git | wc -l)
if [[ ! "x$OUTPUT" == "x0" ]];
then
diff -ra external/polyseed ${{ matrix.coin }}/contrib/depends/sources/polyseed/*
exit 1
Expand Down

0 comments on commit 3d884df

Please sign in to comment.