Skip to content

Commit

Permalink
Update pr-issue-validator.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhtayal72 authored Sep 1, 2023
1 parent 8c9d19a commit b100bce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-issue-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ jobs:
PR_BODY=$(jq -r '.pull_request.body' $GITHUB_EVENT_PATH)
echo "PR_BODY = $PR_BODY"
shopt -s nocasematch
if [[ "$PR_BODY" =~ "$pattern" ]]; then
# shopt -s nocasematch
if echo "$PR_BODY" | grep -iEq "$pattern"; then
# if [[ "$PR_BODY" =~ "$pattern" ]]; then
issue_num=$(echo "$PR_BODY" | grep -iE "$pattern" | head -n1 | grep -o -E "[0-9]+")
echo "issue_num is : $issue_num"
else
Expand Down

0 comments on commit b100bce

Please sign in to comment.