[SDKTECHNO-268] Change SMT to SUM_MAX_INSTANCES_FETCHED #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create issue on Jira | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
jira: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Jira Login | |
id: login | |
uses: atlassian/gajira-login@master | |
env: | |
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
JIRA_USER_EMAIL: ${{ secrets.JIRA_EMAIL }} | |
JIRA_API_TOKEN: ${{ secrets.JIRA_TOKEN }} | |
- name: Jira Create issue | |
id: create_jira_issue | |
uses: atlassian/gajira-create@master | |
with: | |
project: ${{ secrets.JIRA_PROJECT }} | |
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }} | |
summary: "[GH#${{ github.event.issue.number }}] ${{ github.event.issue.title }}" | |
description: | | |
${{ github.event.issue.body }} | |
---- | |
{panel} | |
_[Github permalink |${{ github.event.issue.html_url }}]_ | |
{panel} | |
- name: Change Title | |
uses: actions/github-script@0.8.0 | |
env: | |
ISSUE_TITLE: ${{ github.event.issue.title}} | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.issues.update({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
title: '[${{ steps.create_jira_issue.outputs.issue }}] ' + process.env.ISSUE_TITLE | |
}) | |
- name: Add comment after sync | |
uses: actions/github-script@0.8.0 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: ':+1: JIRA Issue created : [${{ steps.create_jira_issue.outputs.issue }}](${{ secrets.JIRA_BASE_URL }}/browse/${{ steps.create_jira_issue.outputs.issue }})' | |
}) |