I have a gitlab rule condition like below.
'$ACTION && $REGION && $ROLE_ARN && $PACKAGEURL && $ACTION == "new" && $CLOUD_PLATFORM == "aws" && $ROLE_ARN != "" && $PACKAGEURL != "" && $REGION != ""'
Want to modify it a bit so that, it should check either the existence of PACKAGEURL or BUILDRPMREQUIRED above.
Tried keeping as below.
'$ACTION && $REGION && $ROLE_ARN && ($PACKAGEURL || $BUILDRPMREQUIRED) && $ACTION == "new" && $CLOUD_PLATFORM == "aws" && $ROLE_ARN != "" && ($PACKAGEURL != "" || $BUILDRPMREQUIRED @= "") && $REGION != ""'
but logic is not correct, because it is working if none of the two variables($PACKAGEURL , $BUILDRPMREQUIRED) passed also.