diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc1dcc7c..4e0e07ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -147,12 +147,12 @@ jobs: LUNCH="breakfast ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}" fi - #copy from here + if [[ "${{ github.event.inputs.LOCAL_MANIFEST }}" =~ \.xml(/)?$ ]]; then local_manifest_url="${{ github.event.inputs.LOCAL_MANIFEST }}" export local_manifest_url="${local_manifest_url%/}" # remove trailing slash if it exists LOCAL_MANIFEST="mkdir -p .repo/local_manifests && rm -rf .repo/local_manifests/* || true && curl -o .repo/local_manifests/local_manifest.xml ${local_manifest_url}" - else + else export LOCAL_MANIFEST="git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{github.event.inputs.LOCAL_MANIFEST_BRANCH}} .repo/local_manifests" fi @@ -181,7 +181,7 @@ jobs: echo "Displaying Local Manifests" if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then - $LOCAL_MANIFEST + bash -c "$LOCAL_MANIFEST" cat .repo/local_manifests/*.xml else echo "Displaying is disabled through secrets." diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 8d9e0434..95452569 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -218,7 +218,7 @@ jobs: echo "Displaying Local Manifests" if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then - $LOCAL_MANIFEST + bash -c "$LOCAL_MANIFEST" cat .repo/local_manifests/*.xml else echo "Displaying is disabled through secrets."