Skip to content

Commit 59b6b1a

Browse files
committed
fix: fix shared workflow bug
1 parent dc75cb1 commit 59b6b1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/shared-check-pr-labels-with-prefix.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
steps:
2929
- name: Filter labels by prefix
3030
id: filter
31+
env:
32+
LABELS_JSON: ${{ inputs.labels }}
3133
run: |
3234
PREFIX="${{ inputs.prefix }}"
3335
34-
INPUT_LABEL='${{ inputs.labels }}'
35-
echo ======1
36-
echo $INPUT_LABEL
37-
echo ======2
36+
echo "Prefix: $PREFIX"
37+
echo "Input labels: $LABELS_JSON"
3838
3939
# Use jq to filter labels by prefix (empty prefix returns all labels)
40-
JSON_RESULT=$(echo '${{ inputs.labels }}' | \
40+
JSON_RESULT=$(echo '$LABELS_JSON' | \
4141
jq --arg prefix "$PREFIX" \
4242
'map(select(.name | startswith($prefix))) |
4343
map({(.name): .}) |

0 commit comments

Comments
 (0)