Skip to content

Commit e132056

Browse files
committed
fix
1 parent b6aaa6d commit e132056

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/pr-description.yaml

Lines changed: 16 additions & 16 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:
8+
validate-pr-description:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Set up workspace
12-
uses: actions/checkout@v2
11+
- name: Set up workspace
12+
uses: actions/checkout@v2
1313

14-
- name: Validate description
15-
run: |
16-
# Fetch PR description from env with jq
17-
PR_DESCRIPTION=$(jq -r ".pull_request.body" "$GITHUB_EVENT_PATH")
18-
KEYWORD="REQUIRED_KEYWORD"
14+
- name: Validate description
15+
run: |
16+
# Fetch PR description from env with jq
17+
PR_DESCRIPTION=$(jq -r ".pull_request.body" "$GITHUB_EVENT_PATH")
18+
KEYWORD="REQUIRED_KEYWORD"
1919
20-
# Ensure PR author removed the welcome comment
21-
if [[ $PR_DESCRIPTION = *"<!--"* ]] || [[ $PR_DESCRIPTION = *"-->"* ]]; then
22-
echo "FAILED: Please remove the welcome comment from your PR description."
23-
exit 1
24-
else
25-
echo "OK: Welcome comment is removed your PR description."
26-
fi
20+
# Ensure PR author removed the welcome comment
21+
if [[ $PR_DESCRIPTION = *"<!--"* ]] || [[ $PR_DESCRIPTION = *"-->"* ]]; then
22+
echo "FAILED: Please remove the welcome comment from your PR description."
23+
exit 1
24+
else
25+
echo "OK: Welcome comment is removed your PR description."
26+
fi
2727
28-
echo "PASS: All checks OK!"
28+
echo "PASS: All checks OK!"

0 commit comments

Comments
 (0)