diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index d945aa795..71d971bb0 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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 }}