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