Skip to content

Commit 9fb5d1a

Browse files
committed
fix(inputs): add fallback to ENV for inputs JIRA_COMPONENT and JIRA_TASK
1 parent 1a571a1 commit 9fb5d1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/sync-jira.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
JIRA_URL: ${{ secrets.JIRA_URL }}
4949
JIRA_USER: ${{ secrets.JIRA_USER }}
5050
JIRA_PROJECT: RDT
51-
JIRA_COMPONENT: 'github-actions-development'
51+
JIRA_COMPONENT: 'github-actions-development' # pragma: allowlist secret

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ runs:
7575
JIRA_URL: ${{ env.JIRA_URL }} # Needs to be passed from caller workflow; by ENV (secure), not by input
7676
JIRA_USER: ${{ env.JIRA_USER }} # Needs to be passed from caller workflow; by ENV (secure), not by input
7777
INPUT_CRON_JOB: ${{ github.event_name == 'schedule' && 'true' || '' }}
78-
JIRA_PROJECT: ${{ inputs.jira-project != '' && inputs.jira-project || env.JIRA_PROJECT }} # Try input, fallback to enn
79-
JIRA_COMPONENT: ${{ inputs.jira-component }}
80-
JIRA_ISSUE_TYPE: ${{ inputs.jira-issue-type }}
78+
JIRA_PROJECT: ${{ inputs.jira-project != '' && inputs.jira-project || env.JIRA_PROJECT }} # Try input, fallback to env
79+
JIRA_COMPONENT: ${{ inputs.jira-component || env.JIRA_COMPONENT }} # Try input, fallback to env
80+
JIRA_ISSUE_TYPE: ${{ inputs.jira-issue-type || env.JIRA_COMPONENT }} # Try input, fallback to env

0 commit comments

Comments
 (0)