Skip to content

Commit

Permalink
cleanup part ii
Browse files Browse the repository at this point in the history
  • Loading branch information
auhlig committed Jun 17, 2024
1 parent 44c487b commit 9b81c9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,13 @@ runs:
}
}'
link_gh_response=$(curl --silent -w "%{http_code}" -o /tmp/link_gh_response.json -H "$jira_auth_header" -X POST -H "Content-Type: application/json" --data "${gh_link_body}" "${{ inputs.JIRA_URL }}/rest/api/2/issue/${{ steps.create_jira_issue.outputs.jira_issue_key }}/remotelink")
echo $link_gh_response
echo "snafu"
echo $(cat /tmp/link_gh_response.json)
http_status=$(tail -n1 <<< "$link_gh_response")
if [[ $http_status != 2* ]]; then
echo "Linking github issue failed with status $http_status"
exit 1
fi
echo "Linked ${new_issue_key} to GitHub issue ${{ github.event.issue.number }}"
echo "Linked ${{ steps.create_jira_issue.outputs.jira_issue_key }} to GitHub issue ${{ github.event.issue.number }}"
- name: "Link issue to Epic"
if: ${{ env.NeedsJiraUpdate == 'true' }}
Expand Down

0 comments on commit 9b81c9c

Please sign in to comment.