Skip to content

Commit a4aa9d0

Browse files
committed
A different approach
1 parent 9ea7c26 commit a4aa9d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ jobs:
6666
export HEAD_COMMIT=${{steps.head_commit.outputs.result}}
6767
echo "HEAD commit: "
6868
echo $HEAD_COMMIT
69-
$(git diff --unified=0 $BASE_COMMIT...$HEAD_COMMIT ${f} | grep 'version:')
70-
echo "Return status of command: "
71-
echo $?
72-
if [[ $? -ne 0 ]]
69+
DIFF=`git diff --unified=0 $BASE_COMMIT...$HEAD_COMMIT ${f}`
70+
echo "Diff: "
71+
echo #DIFF
72+
if [[ ${DIFF} != *"version:"* ]]
7373
then
7474
echo "These changes didn't modify the version of ${f}"
7575
commit_contained_components_that_did_not_modify_version=1
7676
fi
7777
fi
7878
done
79-
set -e
79+
set +e
8080
8181
if [[ $commit_contained_components_that_did_not_modify_version -eq 1 ]]
8282
then

0 commit comments

Comments
 (0)