We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 005fe04 commit 6604815Copy full SHA for 6604815
.github/workflows/check-labels.yml
@@ -14,9 +14,11 @@ jobs:
14
run: |
15
echo "A"
16
REQUIRED_LABEL="devnet-pass"
17
+ echo "B"
18
+ PR_LABELS=$(echo '${{ toJSON(github.event.pull_request.labels) }}' | tr -d '\n')
19
echo "C"
20
- 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
22
echo "D1"
23
echo "Required label '$REQUIRED_LABEL' is present."
24
else:
0 commit comments