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 9fb5d1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USER: ${{ secrets.JIRA_USER }}
JIRA_PROJECT: RDT
JIRA_COMPONENT: 'github-actions-development'
JIRA_COMPONENT: 'github-actions-development' # pragma: allowlist secret
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 9fb5d1a

Please sign in to comment.