Skip to content

Commit 6604815

Browse files
committed
try stripping newlines
1 parent 005fe04 commit 6604815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/check-labels.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ jobs:
1414
run: |
1515
echo "A"
1616
REQUIRED_LABEL="devnet-pass"
17+
echo "B"
18+
PR_LABELS=$(echo '${{ toJSON(github.event.pull_request.labels) }}' | tr -d '\n')
1719
echo "C"
1820
19-
if echo '${{ toJSON(github.event.pull_request.labels) }}' | grep -q "\"name\":\"$REQUIRED_LABEL\""; then
21+
if echo "$PR_LABELS" | grep -q "\"name\":\"$REQUIRED_LABEL\""; then
2022
echo "D1"
2123
echo "Required label '$REQUIRED_LABEL' is present."
2224
else:

0 commit comments

Comments
 (0)