Commit 13b13f35 authored by sc979's avatar sc979 Committed by schapron
Browse files

fix(chore): use github action env usage (#49)

parent 81414b53
...@@ -6,9 +6,6 @@ on: ...@@ -6,9 +6,6 @@ on:
branches: [ develop ] branches: [ develop ]
env: env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: "MON" JIRA_PROJECT_KEY: "MON"
JIRA_ISSUE_TYPE: "Technical" JIRA_ISSUE_TYPE: "Technical"
...@@ -24,15 +21,19 @@ jobs: ...@@ -24,15 +21,19 @@ jobs:
- name: Login to Jira - name: Login to Jira
uses: atlassian/gajira-login@v2.0.0 uses: atlassian/gajira-login@v2.0.0
env: id: login
with:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Jira Issue - name: Create Jira Issue
id: create
uses: atlassian/gajira-create@v2.0.1 uses: atlassian/gajira-create@v2.0.1
id: create
with: with:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
project: ${{ env.JIRA_PROJECT_KEY }} project: ${{ env.JIRA_PROJECT_KEY }}
issuetype: ${{ env.JIRA_ISSUE_TYPE }} issuetype: ${{ env.JIRA_ISSUE_TYPE }}
summary: | summary: |
...@@ -53,7 +54,6 @@ jobs: ...@@ -53,7 +54,6 @@ jobs:
*Github Advisory* *Github Advisory*
fields: fields:
'{ '{
"customfield_10880": "Internal", "customfield_10880": "Internal",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment