From f179e6ae115ab03cc674dfd4b358b41c4f552f0f Mon Sep 17 00:00:00 2001 From: cloudneutral Date: Wed, 24 Dec 2025 16:43:15 +0800 Subject: [PATCH] Use git clone for GitOps config checkout --- .../workflows/iac-pipeline-mutli-cloud-bootstrap..yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/iac-pipeline-mutli-cloud-bootstrap..yaml b/.github/workflows/iac-pipeline-mutli-cloud-bootstrap..yaml index 1717870c..f4c7d674 100644 --- a/.github/workflows/iac-pipeline-mutli-cloud-bootstrap..yaml +++ b/.github/workflows/iac-pipeline-mutli-cloud-bootstrap..yaml @@ -50,11 +50,9 @@ jobs: - uses: actions/checkout@v4 - name: Checkout GitOps config - uses: actions/checkout@v4 - with: - path: ${{ env.TG_ROOT }}/gitops - repository: ${{ env.GITOPS_REPO }} - ref: ${{ github.event.inputs.gitops_repo_ref || 'main' }} + run: | + git clone --branch "${{ github.event.inputs.gitops_repo_ref || 'main' }}" \ + --depth 1 "${{ env.GITOPS_REPO }}" "${{ env.TG_ROOT }}/gitops" - name: Document Bootstrap Scope run: |