Skip to content

chore: bumping to 0.0.4 due to a bug #12

chore: bumping to 0.0.4 due to a bug

chore: bumping to 0.0.4 due to a bug #12

name: SmartBear Supported Pull Request Merged
# Example of trigger for this workflow:
#
# on:
# pull_request:
# types:
# - closed
on:
workflow_call:
jobs:
if_merged:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
name: Transition Jira ticket to Close
steps:
- name: login
uses: atlassian/gajira-login@v3
JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }}

Check failure on line 21 in .github/workflows/smartbear-pull-request-merged.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/smartbear-pull-request-merged.yaml

Invalid workflow file

You have an error in your yaml syntax on line 21
JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }}
ISSUE_TITLE: ${{ github.event.issue.title }}
- run: echo ${{ github.event.pull_request.title }}
- name: Search
id: search
uses: tomhjp/[email protected]
with:
jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}'
- name: Log
run: echo "Found issue ${{ steps.search.outputs.issue }}"
- name: Transition issue
if: steps.search.outputs.issue != ''
uses: atlassian/gajira-transition@v3
with:
issue: ${{ steps.search.outputs.issue }}
transition: "Done"