From a25ff1ac695dc9d077ae3d1057fdc76b412e900c Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Thu, 14 Mar 2024 18:40:45 +0300 Subject: [PATCH] Fix the repo name calculation logic in the Updoc CI workflow Signed-off-by: Alper Rifat Ulucinar --- .github/workflows/provider-updoc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/provider-updoc.yml b/.github/workflows/provider-updoc.yml index c6ecadc..33df42c 100644 --- a/.github/workflows/provider-updoc.yml +++ b/.github/workflows/provider-updoc.yml @@ -69,13 +69,13 @@ jobs: run: | if [[ "${GITHUB_REF##*/}" == release-* ]]; then for s in $SUBPACKAGES; do - PROVIDER_PACKAGE_NAME="${{ env.PROVIDER_NAME }}-$s" + PROVIDER_PACKAGE_NAME="${PROVIDER_NAME/-upjet/}-$s" DOCS_DIR="./docs/family" if [ $s == 'monolith' ]; then - PROVIDER_PACKAGE_NAME="${{ env.PROVIDER_NAME }}" + PROVIDER_PACKAGE_NAME="${PROVIDER_NAME/-upjet/}" DOCS_DIR="./docs/monolith" elif [ $s == 'config' ]; then - PROVIDER_PACKAGE_NAME="provider-family-${GITHUB_REPOSITORY#*-}" + PROVIDER_PACKAGE_NAME="provider-family-${GITHUB_REPOSITORY##*-}" DOCS_DIR="./docs/family" fi echo "Publishing Docs for $PROVIDER_PACKAGE_NAME, ${{ env.VER_MAJOR_MINOR }} from $DOCS_DIR"