Skip to content

Commit

Permalink
Merge pull request #196 from ulucinar/fix-updoc
Browse files Browse the repository at this point in the history
Fix the repo name calculation logic in the Updoc CI workflow
  • Loading branch information
ulucinar authored Mar 14, 2024
2 parents 4af62dd + a25ff1a commit af5d22a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/provider-updoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit af5d22a

Please sign in to comment.