Skip to content

Commit

Permalink
Add conditional for inputs to the dispatch-n-wait conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Aug 27, 2024
1 parent 2281e67 commit cd6b1d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/spring-dispatch-workflow-and-wait/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ runs:
dispatchDate=$(date -Iseconds)
workflowFile=${{ inputs.workflow }}
echo '${{ inputs.inputs }}' | gh workflow run $workflowFile --json
if [ '${{ inputs.inputs }}' ]; then
echo '${{ inputs.inputs }}' | gh workflow run $workflowFile --json
else
gh workflow run $workflowFile
fi
sleep 60
Expand Down

0 comments on commit cd6b1d7

Please sign in to comment.