Skip to content

Commit

Permalink
issue key and sed
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 14, 2023
1 parent 5115aa9 commit 222540a
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' | 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 }}
Expand All @@ -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 != ''
Expand All @@ -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

0 comments on commit 222540a

Please sign in to comment.