Skip to content

Commit cd670ad

Browse files
committed
Fix for actionlint
1 parent 96fbf7f commit cd670ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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."

0 commit comments

Comments
 (0)