Skip to content

Commit

Permalink
Remove slashes if exist in json file
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 22, 2024
1 parent e388306 commit e01adcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e01adcf

Please sign in to comment.