From: Yegor Yefremov Date: Wed, 29 Nov 2023 08:13:18 +0000 (+0100) Subject: CI: allow PRs for CONTRIBUTING.md and README.md files X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=13553e66412fbcc215ae06ea71d11cfdad546dae;p=openwrt-packages.git 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 --- diff --git a/.github/workflows/formal.yml b/.github/workflows/formal.yml index b3f824c52..1447a3959 100644 --- a/.github/workflows/formal.yml +++ b/.github/workflows/formal.yml @@ -43,7 +43,7 @@ jobs: fi 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)" else err "Commit subject line MUST start with ': ' ($subject)"