Skip to content

Commit b6aaa6d

Browse files
authored
Update pr-description.yaml
1 parent 1af0f28 commit b6aaa6d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/pr-description.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ on:
55
types: [opened, edited, reopened]
66

77
jobs:
8-
validate-pr-description:
9-
name: Validate Description
8+
validate-pr-description:
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Set up workspace
1312
uses: actions/checkout@v2
1413

15-
- name: Validate
14+
- name: Validate description
1615
run: |
17-
# Ensure jq is installed
18-
# sudo apt-get install jq
19-
20-
# Fetch PR description using jq
16+
# Fetch PR description from env with jq
2117
PR_DESCRIPTION=$(jq -r ".pull_request.body" "$GITHUB_EVENT_PATH")
2218
KEYWORD="REQUIRED_KEYWORD"
2319
24-
# Users should remove the welcome comment
20+
# Ensure PR author removed the welcome comment
2521
if [[ $PR_DESCRIPTION = *"<!--"* ]] || [[ $PR_DESCRIPTION = *"-->"* ]]; then
2622
echo "FAILED: Please remove the welcome comment from your PR description."
2723
exit 1
24+
else
25+
echo "OK: Welcome comment is removed your PR description."
2826
fi
27+
28+
echo "PASS: All checks OK!"

0 commit comments

Comments
 (0)