CI: allow PRs for CONTRIBUTING.md and README.md files
Also grep for CONTRIBUTING.md and README.md in the subject. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
parent
661a22c594
commit
13553e6641
1 changed files with 1 additions and 1 deletions
2
.github/workflows/formal.yml
vendored
2
.github/workflows/formal.yml
vendored
|
@ -43,7 +43,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
subject="$(git show -s --format=%s $commit)"
|
subject="$(git show -s --format=%s $commit)"
|
||||||
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then
|
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert ' -e '^CONTRIBUTING.md' -e '^README.md'; then
|
||||||
success "Commit subject line seems ok ($subject)"
|
success "Commit subject line seems ok ($subject)"
|
||||||
else
|
else
|
||||||
err "Commit subject line MUST start with '<package name>: ' ($subject)"
|
err "Commit subject line MUST start with '<package name>: ' ($subject)"
|
||||||
|
|
Loading…
Reference in a new issue