Skip to content

Commit

Permalink
Work on conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jul 17, 2024
1 parent d39c2a0 commit 35441f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ runs:
# Follow any active rollouts; temporary support for DeploymentConfigs
DDC=${{ steps.vars.outputs.deployment }}
if [ ! -z "${DDC}" ]&&[ $(oc get deployment/${DDC} 2>/dev/null) ]; then
if [ ! -z "${DDC}" ]&&[ ! -z $(oc get deployment ${DDC} -o name --ignore-not-found) ]; then
oc rollout status deployment/${DDC} -w
elif [ ! -z "${DDC}" ]; then
elif [ ! -z "${DDC}" ]&&[ ! -z $(oc get deploymentconfig ${DDC} -o name --ignore-not-found) ]; then
oc rollout status deploymentconfig/${DDC} -w
fi
- name: Route Verification
if: steps.vars.outputs.url &&
( steps.diff.outputs.triggered == 'true' )
Expand Down

0 comments on commit 35441f9

Please sign in to comment.