Skip to content

Commit 210be56

Browse files
DEVOPS-66 fixed workflow eror
1 parent 4abeb6f commit 210be56

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/programatically-create-jira-issues-from-github.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,17 @@ jobs:
5454
JIRA_URL: ${{ secrets.JIRA_URL }}
5555
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
5656
JIRA_PASSWORD: ${{ secrets.JIRA_PASSWORD }}
57-
EPIC_KEY_OPTION: ${{ github.event.inputs.EPIC_KEY && format('--epic_key {}', github.event.inputs.EPIC_KEY) || '' }}
58-
STORY_KEY_OPTION: ${{ github.event.inputs.STORY_KEY && format('--story_key {}', github.event.inputs.STORY_KEY) || '' }}
5957

6058
run: |
59+
|
60+
EPIC_KEY_OPTION=""
61+
if [ -n "${{ github.event.inputs.EPIC_KEY }}" ]; then
62+
EPIC_KEY_OPTION="--epic_key ${{ github.event.inputs.EPIC_KEY }}"
63+
fi
64+
STORY_KEY_OPTION=""
65+
if [ -n "${{ github.event.inputs.STORY_KEY }}" ]; then
66+
STORY_KEY_OPTION="--story_key ${{ github.event.inputs.STORY_KEY }}"
67+
fi
6168
poetry run python3 jira.py --type_of_issue ${{ github.event.inputs.TYPE_OF_ISSUE }} \
6269
--jira_board ${{ github.event.inputs.JIRA_BOARD }} \
6370
--summary "${{ github.event.inputs.ISSUE_SUMMARY }}" \

0 commit comments

Comments
 (0)