From 94c80fb3e1511419d73a24fe778b27e7d43bb9b0 Mon Sep 17 00:00:00 2001 From: Tom Broughton Date: Fri, 27 Oct 2023 09:47:10 +0100 Subject: [PATCH] don't echo the command into the config pipe the result into the file --- .github/workflows/upload-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload-image.yml b/.github/workflows/upload-image.yml index 5b07ea9..df93f9d 100644 --- a/.github/workflows/upload-image.yml +++ b/.github/workflows/upload-image.yml @@ -27,8 +27,8 @@ jobs: AER_USER_PWD: ${{ secrets.AER_USER_PWD }} run: | mv app/config.json.sample app/config.json - echo jq --arg pk "$KEY" '.user.privatekey = \$pk' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json - echo jq --arg pwd "$AER_USER_PWD" '.user.password = \$pwd' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json + jq --arg pk "$KEY" '.user.privatekey = \$pk' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json + jq --arg pwd "$AER_USER_PWD" '.user.password = \$pwd' app/config.json.sample > app/config.json.tmp && mv app/config.json.tmp app/config.json - name: Upload image to ECR run: | ./image-build-upload.sh