Skip to content

Commit

Permalink
fix transition
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 14, 2023
1 parent 222540a commit 6c6cfc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand All @@ -44,4 +44,4 @@ jobs:
uses: atlassian/gajira-transition@v3
with:
issue: ${{ env.ISSUE_KEY }}
transition: Send for review
transition: Released

0 comments on commit 6c6cfc1

Please sign in to comment.