Skip to content

Commit

Permalink
Update issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonashrees authored Jun 13, 2024
1 parent 7332c30 commit 9a852ae
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -1 +1,67 @@
name: Create Jira Issue

on:

push:

branches:

- main

jobs:

create-jira-issue:

runs-on: ubuntu-latest

steps:

- name: Checkout code

uses: actions/checkout@v2

- name: Create Jira Issue

env:

JIRA_BASE_URL: ${{ secrets.JIRA_URL }}

JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}

JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

run: |
curl --request POST \
--url "${JIRA_BASE_URL}/rest/api/3/issue" \
--user "${JIRA_EMAIL}:${JIRA_API_TOKEN}" \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"fields": {
"project": {
"key": "NS"
},
"summary": "Main order flow broken",
"issuetype": {
"id": "10005"
}
}
}'

0 comments on commit 9a852ae

Please sign in to comment.