Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 15, 2023
1 parent 5fc3196 commit 79d271c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@ jobs:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
- name: Login to Jira
if: env.FIX_VERSION != null && env.ISSUE_KEY != null
if: env.FIX_VERSION != 'null' && env.ISSUE_KEY != 'null'
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
- name: Start release
if: env.FIX_VERSION != null && env.ISSUE_KEY != null
if: env.FIX_VERSION != 'null' && env.ISSUE_KEY != 'null'
uses: atlassian/gajira-transition@v3
with:
issue: ${{ env.ISSUE_KEY }}
transition: Start Release
- name: Publish release
if: env.FIX_VERSION != null && env.ISSUE_KEY != null
if: env.FIX_VERSION != 'null' && env.ISSUE_KEY != 'null'
run: |
gh release edit $FIX_VERSION --prerelease=false --latest --repo acquia/cli
env:
GH_TOKEN: ${{ github.token }}
- name: Close release
if: env.FIX_VERSION != null && env.ISSUE_KEY != null
if: env.FIX_VERSION != 'null' && env.ISSUE_KEY != 'null'
uses: atlassian/gajira-transition@v3
with:
issue: ${{ env.ISSUE_KEY }}
Expand Down

0 comments on commit 79d271c

Please sign in to comment.