[General Usage]: Newer snowflake_roles resource seems much less convenient than the previous snowflake_role resource #814
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: jira-issues | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
jira-action: | |
runs-on: ubuntu-latest | |
name: Jira create issue | |
steps: | |
- name: Curl to webhook | |
run: | | |
curl --location --request POST '${{ secrets.JIRA_BASE_URL }}/rest/api/2/issue' \ | |
--header 'Authorization: Basic ${{ secrets.JIRA_API_TOKEN }}' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"fields": { | |
"project": { | |
"key": "${{ secrets.JIRA_PROJECT }}" | |
}, | |
"summary": "terraform-provider-snowflake issue ${{ github.event.issue.number }}", | |
"description": "*URL*\n${{ github.event.issue.html_url }}", | |
"issuetype": { | |
"name": "Task" | |
}, | |
"components": [ | |
{ | |
"id": "${{ secrets.JIRA_COMPONENT }}" | |
} | |
], | |
"labels": [${{ secrets.JIRA_LABELS }}], | |
"customfield_11401": { | |
"id": "${{ secrets.JIRA_AREA }}" | |
}, | |
"customfield_10008": "${{ secrets.JIRA_EPIC }}", | |
"assignee": { | |
"id": "${{ secrets.JIRA_ASSIGNEE }}" | |
} | |
} | |
} | |
}' |