Skip to content

Commit 5ce53be

Browse files
committed
Handle newlines
1 parent 0a7d3e1 commit 5ce53be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/linear.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linear in description
1+
name: Check for "linear" in pull request description
22

33
on:
44
pull_request:
@@ -21,9 +21,9 @@ jobs:
2121
echo "Pull Request Description: $pr_description"
2222
echo "::set-output name=description::$pr_description"
2323
24-
- name: Check for linear in PR description
24+
- name: Check for "linear" in the pull request description
2525
run: |
26-
if echo "${{ steps.pr-info.outputs.description }}" | grep -qi "linear"; then
26+
if echo "${{ steps.pr-info.outputs.description }}" | tr -d '\n' | grep -qi "linear"; then
2727
echo "'linear' found in the pull request description."
2828
else
2929
echo "'linear' not found in the pull request description."

0 commit comments

Comments
 (0)