Skip to content

Commit

Permalink
fix(inputs): add fallback to ENV for inputs JIRA_COMPONENT and JIRA_TASK
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Dec 6, 2024
1 parent 1a571a1 commit a0dfac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ runs:
JIRA_URL: ${{ env.JIRA_URL }} # Needs to be passed from caller workflow; by ENV (secure), not by input
JIRA_USER: ${{ env.JIRA_USER }} # Needs to be passed from caller workflow; by ENV (secure), not by input
INPUT_CRON_JOB: ${{ github.event_name == 'schedule' && 'true' || '' }}
JIRA_PROJECT: ${{ inputs.jira-project != '' && inputs.jira-project || env.JIRA_PROJECT }} # Try input, fallback to enn
JIRA_COMPONENT: ${{ inputs.jira-component }}
JIRA_ISSUE_TYPE: ${{ inputs.jira-issue-type }}
JIRA_PROJECT: ${{ inputs.jira-project != '' && inputs.jira-project || env.JIRA_PROJECT }} # Try input, fallback to env
JIRA_COMPONENT: ${{ inputs.jira-component || env.JIRA_COMPONENT }} # Try input, fallback to env
JIRA_ISSUE_TYPE: ${{ inputs.jira-issue-type || env.JIRA_COMPONENT }} # Try input, fallback to env

0 comments on commit a0dfac2

Please sign in to comment.