瀏覽代碼

chore: fix env var replacement

Karol Sójko 1 年之前
父節點
當前提交
a25eb178c5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/common-deploy.yml

+ 1 - 1
.github/workflows/common-deploy.yml

@@ -40,7 +40,7 @@ jobs:
 
     - name: Fill in the new package version in the Amazon ECS task definition
       run: |
-        jq '(.containerDefinitions[] | select(.name=="${{ inputs.service_name }}-prod") | .environment[] | select(.name=="NPM_PACKAGE_VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
+        jq '(.containerDefinitions[] | select(.name=="${{ inputs.service_name }}-prod") | .environment[] | select(.name=="npm_package_version")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
 
     - name: Fill in the new image ID in the Amazon ECS task definition
       id: task-def-prod