summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-08-02 14:21:24 +0000
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-08-02 14:21:24 +0000
commit3d884df24ea1d8623465074f40ef7a3271aa1f65 (patch)
tree771097e95700f7cfed715f4ec3c6dc6ee891fd6c
parent0be0442784420140bae4c3b64b4b0e64f0c25f96 (diff)
different way to check for a diff
-rw-r--r--.github/workflows/dependencies_matches.yaml7
1 files changed, 2 insertions, 5 deletions
diff --git a/.github/workflows/dependencies_matches.yaml b/.github/workflows/dependencies_matches.yaml
index 45b09de..51e7b2b 100644
--- a/.github/workflows/dependencies_matches.yaml
+++ b/.github/workflows/dependencies_matches.yaml
@@ -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
@@ -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