Skip to content

Commit

Permalink
refactor: Inline bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
croyzor committed Sep 22, 2023
1 parent a949199 commit bad1412
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
16 changes: 0 additions & 16 deletions .github/goodies/priority-to-jira.sh

This file was deleted.

19 changes: 15 additions & 4 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,24 @@ jobs:
fields: '{"labels": ["hugr"]}'
- name: set_priority_var
env:
GH_PRIORITY: {{ github.event.issue.label }}
GH_PRIORITY: ${{ github.event.issue.label }}
run: |
echo JIRA_PRIORITY=$(../goodies/priority-to-jira.sh $GH_PRIORITY) >> $GITHUB_OUTPUT
MY_RESULT=""
case ${GH_PRIORITY} in
P-low)
MY_RESULT=echo Low;;
P-medium)
MY_RESULT=Medium;;
P-high)
MY_RESULT=High;;
P-critical)
MY_RESULT=Highest;;
esac
echo $MY_RESULT >> $GITHUB_OUTPUT
- name: Create Task
env:
JIRA_PRIORITY: {{ steps.set_priority_var.outputs.JIRA_PRIORITY }}
uses: atlassian/[email protected]
JIRA_PRIORITY: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY }}
if: "! contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
Expand Down

0 comments on commit bad1412

Please sign in to comment.