From c510205589b2395f698716fdb3eb30611c541947 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 24 May 2024 16:36:10 +0100 Subject: [PATCH] fix yq query --- .github/workflows/deploy-service.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-service.yaml b/.github/workflows/deploy-service.yaml index 18f3cd8d..e601d5f0 100644 --- a/.github/workflows/deploy-service.yaml +++ b/.github/workflows/deploy-service.yaml @@ -21,18 +21,14 @@ jobs: uses: mikefarah/yq@master with: cmd: | - config=$( - # Set name with convention "{ENV_NAME}-{REPO_NAME}" - export name=${{ github.repository }} - name=${name#"ocadotechnology/codeforlife-"} - name="${{ github.ref_name }}-${name}" + # Set name with convention "{ENV_NAME}-{REPO_NAME}" + name=${{ github.repository }} + name=${name#"ocadotechnology/codeforlife-"} + name="${{ github.ref_name }}-${name}" - echo ' - .service = "${name}" - ' | envsubst - ) - - yq -i "$config" app.yaml + yq -i ' + .service = "'$name'" + ' app.yaml - name: cat app yaml run: cat app.yaml