Skip to content

Commit d2a7116

Browse files
authored
Update qa.yml
Signed-off-by: Chimi1999 <143087281+Chimi1999@users.noreply.github.com>
1 parent 57b17be commit d2a7116

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/qa.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ jobs:
8585
echo "SERVICE_NAME: $SERVICE_NAME"
8686
8787
# Replace placeholders in the JSON file
88-
sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/qa-credo-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json
88+
sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/qa-credo-service.json > "${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json"
8989
9090
# Debug: Print the content of the modified JSON file
91-
cat ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json
91+
cat "${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json"
9292

9393
# Register the task definition using the modified JSON file
94-
aws ecs register-task-definition --family ${FAMILY} --cli-input-json file://${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json --region ${{ env.AWS_REGION }}
94+
aws ecs register-task-definition --family "${FAMILY}" --cli-input-json file://"${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json" --region "${{ env.AWS_REGION }}"
9595

96-
SERVICE_INFO=$(aws ecs describe-services --services ${SERVICE_NAME} --cluster ${CLUSTER} --region ap-southeast-1)
96+
SERVICE_INFO=$(aws ecs describe-services --services "${SERVICE_NAME}" --cluster "${CLUSTER}" --region ap-southeast-1)
9797

9898
# Check if the service exists
9999
if [ -z "$SERVICE_INFO" ]; then

0 commit comments

Comments
 (0)