diff --git a/action.yaml b/action.yaml index 165e3b1..2b77e92 100644 --- a/action.yaml +++ b/action.yaml @@ -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' }}