diff --git a/.github/workflows/deploy-backend-dev.yml b/.github/workflows/deploy-backend-dev.yml index cd0b4c0c9..bebf31c01 100644 --- a/.github/workflows/deploy-backend-dev.yml +++ b/.github/workflows/deploy-backend-dev.yml @@ -29,7 +29,8 @@ jobs: env: RECAPTCHA_CONFIG_JSON_BASE64: ${{ secrets.RECAPTCHA_CONFIG_JSON_BASE64 }} run: | - sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$(echo "$RECAPTCHA_CONFIG_JSON_BASE64" | sed -e 's/[\/&]/\\&/g')/g" utils/helper.go + escaped_value=$(printf '%s\n' "$RECAPTCHA_CONFIG_JSON_BASE64" | sed -e 's/[\/&]/\\&/g') + sed -i "s/RECAPTCHA_CONFIG_JSON_BASE64/$escaped_value/g" utils/helper.go apt-get update && apt-get install -y zip GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go zip canopas_serverless_dev_${{ github.sha }}.zip main