From 6cfd755c411d0f48f994bdafe56f5a86a51bb3c8 Mon Sep 17 00:00:00 2001 From: Bojan Rajh Date: Thu, 26 Oct 2023 17:16:28 +0200 Subject: [PATCH] feat: customization --- .github/workflows/external-healthcheck.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/external-healthcheck.yml b/.github/workflows/external-healthcheck.yml index 9c3ba90b..1035cc4b 100644 --- a/.github/workflows/external-healthcheck.yml +++ b/.github/workflows/external-healthcheck.yml @@ -32,30 +32,30 @@ jobs: echo "repo" ${{ inputs.repo }} echo "sha" ${{ inputs.sha }} - ORG=${{ inputs.repo }} + ORG=$(dirname ${{ inputs.repo }}) BRANCH=${{ inputs.branch }} - if [[ "${{ inputs.repo }}" == "frontends" ]]; then + if [[ "${{ inputs.repo }}" == *"/frontends" ]]; then echo "Embedding frontends" sed -i "0,/ORG_FRONTENDS.*/s/.*ORG_FRONTENDS.*/ORG_FRONTENDS=$ORG/" ./.github/scripts/embed.sh sed -i "0,/BRANCH_FRONTENDS.*/s/.*BRANCH_FRONTENDS.*/BRANCH_FRONTENDS=$BRANCH/" ./.github/scripts/embed.sh - elif [[ "${{ inputs.repo }}" == "admin-extension-sdk" ]]; then + elif [[ "${{ inputs.repo }}" == *"/admin-extension-sdk" ]]; then echo "Embedding admin-extension-sdk" sed -i "0,/ORG_ADMIN_EXTENSION_SDK.*/s/.*ORG_ADMIN_EXTENSION_SDK.*/ORG_ADMIN_EXTENSION_SDK=$ORG/" ./.github/scripts/embed.sh sed -i "0,/BRANCH_ADMIN_EXTENSION_SDK.*/s/.*BRANCH_ADMIN_EXTENSION_SDK.*/BRANCH_ADMIN_EXTENSION_SDK=$BRANCH/" ./.github/scripts/embed.sh - elif [[ "${{ inputs.repo }}" == "meteor-icon-kit" ]]; then + elif [[ "${{ inputs.repo }}" == *"/meteor-icon-kit" ]]; then echo "Embedding meteor-icon-kit" sed -i "0,/ORG_METEOR_ICON_KIT.*/s/.*ORG_METEOR_ICON_KIT.*/ORG_METEOR_ICON_KIT=$ORG/" ./.github/scripts/embed.sh sed -i "0,/BRANCH_METEOR_ICON_KIT.*/s/.*BRANCH_METEOR_ICON_KIT.*/BRANCH_METEOR_ICON_KIT=$BRANCH/" ./.github/scripts/embed.sh - elif [[ "${{ inputs.repo }}" == "meteor-component-library" ]]; then + elif [[ "${{ inputs.repo }}" == *"/meteor-component-library" ]]; then echo "Embedding meteor-component-library" sed -i "0,/ORG_METEOR_COMPONENT_LIBRARY.*/s/.*ORG_METEOR_COMPONENT_LIBRARY.*/ORG_METEOR_COMPONENT_LIBRARY=$ORG/" ./.github/scripts/embed.sh sed -i "0,/BRANCH_METEOR_COMPONENT_LIBRARY.*/s/.*BRANCH_METEOR_COMPONENT_LIBRARY.*/BRANCH_METEOR_COMPONENT_LIBRARY=$BRANCH/" ./.github/scripts/embed.sh - elif [[ "${{ inputs.repo }}" == "docs" ]]; then + elif [[ "${{ inputs.repo }}" == *"/docs" ]]; then echo "Embedding docs" sed -i "0,/ORG_DOCS.*/s/.*ORG_DOCS.*/ORG_DOCS=$ORG/" ./.github/scripts/embed.sh sed -i "0,/BRANCH_DOCS.*/s/.*BRANCH_DOCS.*/BRANCH_DOCS=$BRANCH/" ./.github/scripts/embed.sh