Skip to content

Commit f48ee03

Browse files
committed
testing pipeline
1 parent 9b5d576 commit f48ee03

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/deploy-app.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,19 @@ jobs:
9191
id: api
9292
run: |
9393
API_ID=$(aws apigatewayv2 get-apis \
94-
--query "Items[?Name=='node-api-dev-api'].ApiId" \
94+
--query "Items[?Name==\`node-api-dev-api\`].ApiId" \
9595
--output text)
9696
97+
if [ -z "$API_ID" ] || [ "$API_ID" == "None" ]; then
98+
echo "ERROR: API 'node-api-dev-api' not found."
99+
exit 1
100+
fi
101+
97102
ENDPOINT=$(aws apigatewayv2 get-api \
98-
--api-id ${API_ID} \
103+
--api-id "$API_ID" \
99104
--query 'ApiEndpoint' \
100105
--output text)
101106
102107
echo "endpoint=${ENDPOINT}" >> $GITHUB_OUTPUT
108+
echo "API endpoint: $ENDPOINT"
109+

0 commit comments

Comments
 (0)