ci: Allow submodule bumps from Dependabot
Tweak the logic in `ci-commitmessage-submodules.sh` to allow Dependabot bumps.
This commit is contained in:
parent
30c2444f19
commit
a40014f5a7
@ -53,6 +53,11 @@ git log --pretty=oneline origin/master..$HEAD | while read logline; do
|
|||||||
if grep -q -e '^'${submodule} ${tmpd}/diff.txt; then
|
if grep -q -e '^'${submodule} ${tmpd}/diff.txt; then
|
||||||
echo "Commit $commit modifies submodule: $submodule"
|
echo "Commit $commit modifies submodule: $submodule"
|
||||||
expected_match="Update submodule: $submodule"
|
expected_match="Update submodule: $submodule"
|
||||||
|
# check if it's from dependabot
|
||||||
|
if grep -q -e '^Author: dependabot' ${tmpd}/log.txt; then
|
||||||
|
echo "Commit $commit contains bump from Dependabot"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
if ! grep -q -e "$expected_match" ${tmpd}/log.txt; then
|
if ! grep -q -e "$expected_match" ${tmpd}/log.txt; then
|
||||||
echo "error: Commit message for ${commit} changes a submodule, but does not match regex ${expected_match}"
|
echo "error: Commit message for ${commit} changes a submodule, but does not match regex ${expected_match}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user