From c97ae371a6b58b126836134a3b0fc9d060b1b2ef Mon Sep 17 00:00:00 2001 From: Prince D Rusweka Rwabongoya Date: Fri, 25 Apr 2025 06:27:05 -0400 Subject: [PATCH] Update backend-ci.yml --- backend/.github/workflows/backend-ci.yml | 29 +++++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/backend/.github/workflows/backend-ci.yml b/backend/.github/workflows/backend-ci.yml index cffcdea..36c898c 100644 --- a/backend/.github/workflows/backend-ci.yml +++ b/backend/.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