From 87a9e29a6422212d3947dce5eb3281a99c6e0a76 Mon Sep 17 00:00:00 2001 From: Craig Roy Date: Wed, 27 Sep 2023 14:56:22 +0100 Subject: [PATCH] fix: Join labels in issue workflow (#563) Instead of merging #562, I think this should work to fix the problem. Join the list with " " as the delimiter (because it's bash). This means we can't have spaces in label names, but that seems to be a convention we already use. --- .github/workflows/issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index c66994e26..b973c60b6 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -18,7 +18,7 @@ jobs: - name: Parse the priority label into a Jira priority id: set_priority_var env: - LABELS: ${{ github.event.issue.labels.*.name }} + LABELS: ${{ join(github.event.issue.labels.*.name, ' ') }} run: | MY_RESULT="" for label in $LABELS