diff --git a/.github/workflows/github-jira-issue-sync.yml b/.github/workflows/github-jira-issue-sync.yml index 21d30e9..46c55a6 100644 --- a/.github/workflows/github-jira-issue-sync.yml +++ b/.github/workflows/github-jira-issue-sync.yml @@ -289,11 +289,12 @@ jobs: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} + DESC_JSON: ${{ steps.parse.outputs.description }} with: script: | const jiraKey = '${{ steps.get-jira-key.outputs.jira_key }}'; const issue = context.payload.issue; - const descContent = ${{ steps.parse.outputs.description }}; + const descContent = JSON.parse(process.env.DESC_JSON); const response = await fetch( `${process.env.JIRA_BASE_URL}/rest/api/3/issue/${jiraKey}`, diff --git a/.github/workflows/github-jira-pr-sync.yml b/.github/workflows/github-jira-pr-sync.yml index f1d3aea..5f7747b 100644 --- a/.github/workflows/github-jira-pr-sync.yml +++ b/.github/workflows/github-jira-pr-sync.yml @@ -204,11 +204,13 @@ jobs: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} + DESC_JSON: ${{ steps.parse.outputs.description }} + with: script: | const jiraKey = '${{ steps.get-jira-key.outputs.jira_key }}'; const pr = context.payload.pull_request; - const descContent = ${{ steps.parse.outputs.description }}; + const descContent = JSON.parse(process.env.DESC_JSON); const response = await fetch( `${process.env.JIRA_BASE_URL}/rest/api/3/issue/${jiraKey}`,