From 6c6cfc1d8cf9e83f460ad64b5af2bb80d4e43f4f Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 14 Nov 2023 11:46:34 -0800 Subject: [PATCH] fix transition --- .github/workflows/publish-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index eb90cfeab..08ace0062 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')" >> $GITHUB_ENV + echo "FIX_VERSION=$(printf '%s' $ISSUES | jq -r '.issues[0].fields.fixVersions[0].name' | sed 's/AcquiaCLI//')" >> $GITHUB_ENV echo "ISSUE_KEY=$(printf '%s' $ISSUES | jq -r '.issues[0].key')" >> $GITHUB_ENV env: JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }} @@ -32,7 +32,7 @@ jobs: uses: atlassian/gajira-transition@v3 with: issue: ${{ env.ISSUE_KEY }} - transition: Send for review + transition: Start Release - name: Publish release if: env.FIX_VERSION != '' && env.ISSUE_KEY != '' run: | @@ -44,4 +44,4 @@ jobs: uses: atlassian/gajira-transition@v3 with: issue: ${{ env.ISSUE_KEY }} - transition: Send for review + transition: Released