From 37aae9d82882de5129aeaef57c537ca73fca9ada Mon Sep 17 00:00:00 2001 From: azlam Date: Mon, 1 Jul 2024 09:58:37 +1000 Subject: [PATCH] fix(cicd): update to use version from package.json --- .github/workflows/sfp-copy-docker.yml | 4 ++-- .github/workflows/sfp-promote-docker.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sfp-copy-docker.yml b/.github/workflows/sfp-copy-docker.yml index a2cf5b18a..36cf71480 100644 --- a/.github/workflows/sfp-copy-docker.yml +++ b/.github/workflows/sfp-copy-docker.yml @@ -51,8 +51,8 @@ jobs: - name: 'Get package version' run: | - echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV - RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json) + echo "PKG_VERSION=$(jq -r ".version" package.json)" >> $GITHUB_ENV + RELEASE_NAME=$(jq -r ".release" package.json) RELEASE_NAME_AS_ARRAY=($RELEASE_NAME) RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]} echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV diff --git a/.github/workflows/sfp-promote-docker.yml b/.github/workflows/sfp-promote-docker.yml index d8e5a8582..7bf292601 100644 --- a/.github/workflows/sfp-promote-docker.yml +++ b/.github/workflows/sfp-promote-docker.yml @@ -37,8 +37,8 @@ jobs: - name: 'Get package version' run: | - echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV - RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json) + echo "PKG_VERSION=$(jq -r ".version" package.json)" >> $GITHUB_ENV + RELEASE_NAME=$(jq -r ".release" package.json) RELEASE_NAME_AS_ARRAY=($RELEASE_NAME) RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]} echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV