File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111 name : Check commit message
1212 runs-on : ubuntu-22.04
1313 # Skip on draft, check on draft -> ready
14- if : github.repository_owner == 'Samsung' && github. event.pull_request.draft == false
14+ if : github.event.pull_request.draft == false
1515
1616 steps :
1717 - uses : actions/checkout@v4
@@ -24,11 +24,11 @@ jobs:
2424 - name : " Check signed-off"
2525 run : |
2626 # Get commit body
27- git log origin/${ GITHUB_BASE_REF} ..HEAD --format=%b > commit_msg.txt
27+ git log origin/"$ GITHUB_BASE_REF" ..HEAD --format=%b > commit_msg.txt
2828 sed "/^$/d" commit_msg.txt > commit_body.txt
2929
3030 # Check string starting from "TICO-DCO-1.0-Signed-off-by:"
31- count=$(grep -c "TICO-DCO-1.0-Signed-off-by:" commit_body.txt)
31+ count=" $(grep -c "TICO-DCO-1.0-Signed-off-by:" commit_body.txt)"
3232 if [[ ! "$count" -ge "1" ]]; then
3333 echo "Your commit message does not contain the expected signoff information."
3434 echo "Please add a line like 'TICO-DCO-1.0-Signed-off-by: <NAME> <<EMAIL>>' to your commit message."
You can’t perform that action at this time.
0 commit comments