diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c3be2494c..eb90cfeab 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -14,7 +14,7 @@ jobs: --url "$JIRA_BASE_URL/rest/api/3/search?jql=project%20%3D%20CLI%20AND%20issuetype%20%3D%20Release%20AND%20status%20%3D%20Reviewed" \ --user "$JIRA_USER_EMAIL:$JIRA_API_TOKEN" \ --header 'Accept: application/json') - echo "FIX_VERSION=$(printf '%s' $ISSUES | jq -r '.issues[0].fields.fixVersions[0].name' | sed 's/Acquia CLI //')" >> $GITHUB_ENV + echo "FIX_VERSION=$(printf '%s' $ISSUES | jq -r '.issues[0].fields.fixVersions[0].name')" >> $GITHUB_ENV echo "ISSUE_KEY=$(printf '%s' $ISSUES | jq -r '.issues[0].key')" >> $GITHUB_ENV env: JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }} @@ -31,7 +31,7 @@ jobs: if: env.FIX_VERSION != '' && env.ISSUE_KEY != '' uses: atlassian/gajira-transition@v3 with: - issue: $ISSUE_KEY + issue: ${{ env.ISSUE_KEY }} transition: Send for review - name: Publish release if: env.FIX_VERSION != '' && env.ISSUE_KEY != '' @@ -43,5 +43,5 @@ jobs: if: env.FIX_VERSION != '' && env.ISSUE_KEY != '' uses: atlassian/gajira-transition@v3 with: - issue: $ISSUE_KEY + issue: ${{ env.ISSUE_KEY }} transition: Send for review