From c4e969a1e9939321738137a7503272aec16dcf01 Mon Sep 17 00:00:00 2001 From: YONG WOOK KIM Date: Wed, 24 Jan 2024 09:31:18 -0600 Subject: [PATCH] fixed github action so the correctly tagged image get pushed --- .github/workflows/smile-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smile-server.yaml b/.github/workflows/smile-server.yaml index 6363ba77..12583979 100644 --- a/.github/workflows/smile-server.yaml +++ b/.github/workflows/smile-server.yaml @@ -57,7 +57,7 @@ jobs: # calculate the version and all tags if [ "$BRANCH" == "main" ]; then - version=$(grep '"version"' www/package.json | sed 's/.*"\([0-9\.]*\)", *$/\1/') + VERSION=$(grep '"version"' package.json | sed 's/.*"\([0-9\.]*\)", *$/\1/') tags="latest" oldversion="" tmpversion="${VERSION}"