From e01adcf90ce6533b5884e4d9307cd12c79b9ebd0 Mon Sep 17 00:00:00 2001 From: cp-dharti-r Date: Mon, 22 Apr 2024 12:00:19 +0530 Subject: [PATCH] Remove slashes if exist in json file --- .github/workflows/deploy-backend-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-backend-dev.yml b/.github/workflows/deploy-backend-dev.yml index 440a66404..7178b1b33 100644 --- a/.github/workflows/deploy-backend-dev.yml +++ b/.github/workflows/deploy-backend-dev.yml @@ -28,7 +28,7 @@ jobs: - name: Build backend and copy zip to S3 run: | echo "${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }}" | base64 -d > temp.json - sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$(< temp.json)/g" utils/helper.go + sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$(sed 's:/:\\/:g' temp.json)/g" utils/helper.go rm temp.json apt-get update && apt-get install -y zip GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go