From b62f8d3f10902c488b3b7237a1c72b70faea67f0 Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Thu, 21 Mar 2024 17:48:18 +0300 Subject: [PATCH] Fix the value of the PROVIDER_PACKAGE_NAME env. variable for updoc Signed-off-by: Alper Rifat Ulucinar --- .github/workflows/ci.yml | 10 ++++++++++ .github/workflows/provider-updoc.yml | 7 +++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9129e8a..2dbbabc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,6 +162,16 @@ jobs: if: needs.detect-noop.outputs.noop != 'true' steps: + - name: Cleanup Disk + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 + with: + android: true + dotnet: true + haskell: true + tool-cache: true + large-packages: false + swap-storage: false + - name: Setup QEMU uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2 with: diff --git a/.github/workflows/provider-updoc.yml b/.github/workflows/provider-updoc.yml index 33df42c..a586fdf 100644 --- a/.github/workflows/provider-updoc.yml +++ b/.github/workflows/provider-updoc.yml @@ -63,22 +63,21 @@ jobs: - name: Upload Docs env: GOOGLE_APPLICATION_CREDENTIALS: sa.json - PROVIDER_NAME: ${GITHUB_REPOSITORY#*/} VER_MAJOR_MINOR: v${GITHUB_REF#"refs/heads/release-"} SUBPACKAGES: ${{ inputs.providers }} run: | if [[ "${GITHUB_REF##*/}" == release-* ]]; then for s in $SUBPACKAGES; do - PROVIDER_PACKAGE_NAME="${PROVIDER_NAME/-upjet/}-$s" + PROVIDER_PACKAGE_NAME="provider-${GITHUB_REPOSITORY##*-}-${s}" DOCS_DIR="./docs/family" if [ $s == 'monolith' ]; then - PROVIDER_PACKAGE_NAME="${PROVIDER_NAME/-upjet/}" + PROVIDER_PACKAGE_NAME="provider-${GITHUB_REPOSITORY##*-}" DOCS_DIR="./docs/monolith" elif [ $s == 'config' ]; then 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" + echo "Publishing Docs for ${PROVIDER_PACKAGE_NAME}, ${{ env.VER_MAJOR_MINOR }} from $DOCS_DIR" go run github.com/upbound/uptest/cmd/updoc@${{ env.UPTEST_VERSION }} upload --docs-dir="${DOCS_DIR}" --name="${PROVIDER_PACKAGE_NAME}" --version=${{ env.VER_MAJOR_MINOR }} --bucket-name=bucket-marketplace-docs-production --cdn-domain=https://user-content.upbound.io done else