From a0dfac20a5b5c7ed195e82966225e20cd9d6800a Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Fri, 6 Dec 2024 07:41:18 +0100 Subject: [PATCH] fix(inputs): add fallback to ENV for inputs JIRA_COMPONENT and JIRA_TASK --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 2d54fcb..a2a460d 100644 --- a/action.yml +++ b/action.yml @@ -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