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 ec345b3 commit 358c861
Showing 1 changed file with 38 additions and 23 deletions.
61 changes: 38 additions & 23 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
name: Create Jira Issue
env:
JIRA_BASE_URL: ${{ secrets.JIRA_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
run: |
echo "JIRA_BASE_URL=${JIRA_BASE_URL}"
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"
}
}
}'
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: |
echo "JIRA_BASE_URL=${{ secrets.JIRA_URL }}"
curl --request POST \
--url "${{ secrets.JIRA_URL }}/rest/api/3/issue" \
--user "${{ secrets.JIRA_EMAIL }}:${{ secrets.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 358c861

Please sign in to comment.