Skip to content

Commit f647c6b

Browse files
asadali145Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9e014b5 commit f647c6b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ jobs:
117117
- name: Clone edx-platform
118118
if: steps.cache-edx-platform.outputs.cache-hit != 'true'
119119
run: |
120-
git clone --depth=1 --branch=${{ matrix.edx_branch }} \
121-
https://github.com/openedx/edx-platform \
122-
${{ github.workspace }}/../edx-platform
120+
set -euo pipefail
121+
EDX_DIR="${{ github.workspace }}/../edx-platform"
122+
git init "$EDX_DIR"
123+
git -C "$EDX_DIR" remote add origin https://github.com/openedx/edx-platform
124+
git -C "$EDX_DIR" fetch --depth=1 origin "${{ steps.edx-sha.outputs.sha }}"
125+
git -C "$EDX_DIR" checkout --detach FETCH_HEAD
123126
124127
- name: Generate edx-platform egg-info (registers Django app entry points)
125128
run: pip install --no-deps -e ${{ github.workspace }}/../edx-platform

0 commit comments

Comments
 (0)