forked from ns1-terraform/terraform-provider-ns1
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 840 Bytes
/
Copy pathissue_notify.yml
File metadata and controls
25 lines (25 loc) · 840 Bytes
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
# This workflow is triggered by github issue and creates a jira ticket in the respective configured account
#
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}}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL}}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN}}
- name: Jira Create issue
id: jira_ticket
uses: atlassian/gajira-create@v2.0.1
with:
project: ${{secrets.JIRA_PROJECT_KEY}}
issuetype: Bug
summary: '[ns1-terraform] ${{github.event.issue.title}}'
description: ${{github.event.issue.body}} see more at ${{github.event.issue.html_url}}