From 3fbf17f014085559d1c26b94b8c4351be139da5c Mon Sep 17 00:00:00 2001 From: Prince D Rusweka Rwabongoya Date: Fri, 25 Apr 2025 06:22:21 -0400 Subject: [PATCH] Update backend-ci.yml --- .github/workflows/backend-ci.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 1d9b44e..36c898c 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -11,10 +11,17 @@ jobs: runs-on: self-hosted steps: - - name: Checkout repository + - name: Clean GitHub Actions workspace manually (force clean) + run: | + sudo rm -rf $GITHUB_WORKSPACE/* + + - name: Checkout repository without submodules uses: actions/checkout@v2 with: - submodules: false # 🚫 Don't check submodules to avoid .gitmodules error + submodules: false + clean: true + fetch-depth: 0 + persist-credentials: false - name: Set up Python uses: actions/setup-python@v2 @@ -37,10 +44,17 @@ jobs: needs: lint steps: - - name: Checkout repository + - name: Clean GitHub Actions workspace manually (force clean) + run: | + sudo rm -rf $GITHUB_WORKSPACE/* + + - name: Checkout repository without submodules uses: actions/checkout@v2 with: - submodules: false + submodules: false + clean: true + fetch-depth: 0 + persist-credentials: false - name: Set up Python uses: actions/setup-python@v2 @@ -96,10 +110,13 @@ jobs: needs: lint steps: - - name: Checkout repository + - name: Checkout repository without submodules uses: actions/checkout@v2 with: - submodules: false + submodules: false + clean: true + fetch-depth: 0 + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@v3