File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -88,25 +88,16 @@ jobs:
8888 WS_USER_KEY : ${{ secrets.WS_USER_KEY }}
8989
9090 run : |
91- if [ -z "$WS_APIKEY_NGINX" ]; then
91+ if [ -z "$WS_APIKEY_NGINX" ] || [ -z "$WS_USER_KEY" ] ; then
9292 echo "Secret is empty"
93- exit 1
94- else
95- echo "Secret is available"
93+ exit 1
9694 fi
9795
98- if [ -z "$WS_USER_KEY" ]; then
99- echo "User Key is empty"
100- exit 1
101- else
102- echo "User Key is available"
96+ if [ -z "$PRODUCT_NAME" ] || [ -z "$PROJECT_NAME" ]; then
97+ echo "Project Name is empty"
98+ exit 1
10399 fi
104100
105- if [ -z "$PRODUCT_NAME" || -z "$PROJECT_NAME"]; then
106- echo "Name is empty"
107- exit 1
108- fi
109-
110101 java -jar wss-unified-agent.jar -noConfig true -wss.url $WS_URL -apiKey $WS_APIKEY_NGINX -userKey $WS_USER_KEY -product $PRODUCT_NAME -project $PROJECT_NAME -d ./
111102 exit_code=$?
112103
You can’t perform that action at this time.
0 commit comments