From 0b1dd887da5a9b9519a1371b6956f46c3291141a Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Thu, 3 Oct 2024 09:53:21 +0200 Subject: [PATCH] fix(action): fix empty input for JIRA_PROJECT --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2076d93..2d54fcb 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 }} + 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 }}