diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 842c311d248..f28459ccfcd 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -299,20 +299,21 @@ jobs: - name: Install dependencies run: CI="" yarn install --frozen-lockfile - - name: Disable Git credential helper - run: git config --global credential.helper "" - - - name: Remove existing SSH origin (if any) - run: git remote remove origin || true + - name: Display Git Configurations + run: | + echo "=== Local Git Config (.git/config) ===" + git config --local --list || echo "No local configs found" - - name: Add HTTPS origin - run: git remote add origin https://github.com/opencrvs/opencrvs-core.git + echo -e "\n=== Global Git Config (~/.gitconfig) ===" + git config --global --list || echo "No global configs found" - - name: Verify remote URL - run: git remote -v + echo -e "\n=== All Git Configs with Origins ===" + git config --list --show-origin - name: Fetch full Git history - run: git fetch --prune --unshallow + run: git fetch --prune --depth=100 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run Chromatic uses: chromaui/action@latest