-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (30 loc) · 1.03 KB
/
issue.yml
File metadata and controls
31 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: issue_notify
on:
issues:
types: [opened]
workflow_dispatch:
jobs:
jira_job:
runs-on: ubuntu-latest
steps:
- name: Jira Login
uses: atlassian/gajira-login@v2.0.0
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL_2}}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL_2}}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN_2}}
- name: Jira Create issue
id: jira_ticket
uses: atlassian/gajira-create@v2.0.1
with:
project: ${{secrets.JIRA_PROJECT_KEY_2}}
issuetype: Bug
summary: '[ns1-terraform] ${{github.event.issue.title}}'
description: ${{github.event.issue.body}} see more at ${{github.event.issue.html_url}}
- name: slack-send
uses: slackapi/slack-github-action@v1.15.0
with:
channel-id: C02DGE4CBFY
slack-message: 'New Github issue see more ${{secrets.JIRA_BASE_URL}}/browse/${{steps.jira_ticket.outputs.issue}}'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}