We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea7c26 commit a4aa9d0Copy full SHA for a4aa9d0
.github/workflows/pull-request-checks.yaml
@@ -66,17 +66,17 @@ jobs:
66
export HEAD_COMMIT=${{steps.head_commit.outputs.result}}
67
echo "HEAD commit: "
68
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 ]]
+ DIFF=`git diff --unified=0 $BASE_COMMIT...$HEAD_COMMIT ${f}`
+ echo "Diff: "
+ echo #DIFF
+ if [[ ${DIFF} != *"version:"* ]]
73
then
74
echo "These changes didn't modify the version of ${f}"
75
commit_contained_components_that_did_not_modify_version=1
76
fi
77
78
done
79
- set -e
+ set +e
80
81
if [[ $commit_contained_components_that_did_not_modify_version -eq 1 ]]
82
0 commit comments