Skip to content

Commit

Permalink
changes in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yevoros committed Aug 5, 2024
1 parent f167dd3 commit 0bd0b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create_jira_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0bd0b0b

Please sign in to comment.