From 0bd0b0b20c17ab2d098eaa7eb99698c91b3cbc12 Mon Sep 17 00:00:00 2001 From: Yevhenii Oros Date: Mon, 5 Aug 2024 23:35:42 +0200 Subject: [PATCH] changes in workflow --- .github/workflows/create_jira_workflow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_jira_workflow.yml b/.github/workflows/create_jira_workflow.yml index 12022d6..079c1c4 100644 --- a/.github/workflows/create_jira_workflow.yml +++ b/.github/workflows/create_jira_workflow.yml @@ -18,7 +18,9 @@ jobs: ISSUE_TITLE="${{ github.event.issue.title }}" ISSUE_BODY="${{ github.event.issue.body }}" ISSUE_TYPE="Task" - if echo "${{ join(github.event.issue.labels.*.name, '\n')}}" | grep -q '"bug"'; then + labels="${{ toJSON(github.event.issue.labels.*.name) }}" + echo "Labels: $labels" + if echo "$labels" | grep -q '"bug"'; then ISSUE_TYPE="Bug" elif echo "${{ github.event.issue.labels.*.name }}" | grep -q "feature"; then ISSUE_TYPE="Story"