Skip to content

Commit

Permalink
fix: empty timeout param (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Apr 4, 2024
1 parent f57318e commit 6abc311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ runs:
# Apply (overwrites) or create (does not overwrite) using processed template
TEMPLATE="$(oc process -f ${{ inputs.file }} ${{ inputs.parameters }} --local)"
if [ "${{ inputs.overwrite }}" == "true" ]; then
oc apply --timeout=${{ inputs.timeout }} -f - <<< "${TEMPLATE}"
oc apply --timeout=${{ inputs.timeout || '15m' }} -f - <<< "${TEMPLATE}"
else
# Suppress AlreadyExists errors and expected failure
oc create -f - 2>&1 <<< "${TEMPLATE}" | sed 's/.*: //'
Expand Down

0 comments on commit 6abc311

Please sign in to comment.