From bfb9ca3c8269ad9cc81e44bc2c533241fb2cd09b Mon Sep 17 00:00:00 2001 From: Alex Streed Date: Fri, 28 Jun 2024 16:02:57 -0500 Subject: [PATCH] Add echo --- .github/workflows/label-checker.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label-checker.yaml b/.github/workflows/label-checker.yaml index 8879d57dd63b..bc57c981a975 100644 --- a/.github/workflows/label-checker.yaml +++ b/.github/workflows/label-checker.yaml @@ -29,15 +29,17 @@ jobs: for label in $(yq -r '.changelog.categories[] | select(.title != "Uncategorized") | .labels[]' .github/release.yml); do labels+=("$label") done + echo "Required labels: $labels" echo "required_labels=$labels" >> $GITHUB_OUTPUT - name: Get PR labels id: get-pr-labels run: | labels=() - for label in $(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH" | tr '\n' ' '); do + for label in $(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH"); do labels+=("$label") done + echo "PR labels: $labels" echo "labels=$labels" >> $GITHUB_OUTPUT - name: Check for specific labels