@samitouri / QOSAMI-WSL / commits / add5850f

Checkout official repository instead of source repository in modern distribution CI

Blue committed Jan 30, 2025 at 15:41 UTC add5850fe5c4756de3f38ac01070e53eef350ab2
1 file changed +9 -1
.github/workflows/modern-distributions.yml
+9 -1
@@ -11,11 +11,19 @@ jobs:
11 permissions:
12 pull-requests: write
13 steps:
14 + - name: Checkout official repo
15 + uses: actions/checkout@v4
16 + with:
17 + repository: 'microsoft/WSL'
18 + ref: refs/master
19 + fetch-depth: 0
20 +
21 - name: Checkout repo
22 uses: actions/checkout@v4
23 with:
24 ref: refs/pull/${{ github.event.pull_request.number }}/merge
25 fetch-depth: 0
26 + path: source_repo
27
28 - name: Install pip packages
29 run: pip install -r distributions/requirements.txt
@@ -26,7 +34,7 @@ jobs:
34 python distributions/validate-modern.py \
35 --repo-path . \
36 --compare-with-branch 'origin/${{ github.base_ref }}' \
29 - --manifest distributions/DistributionInfo.json \
37 + --manifest source_repo/distributions/DistributionInfo.json \
38 --github-token '${{ secrets.GITHUB_TOKEN }}' \
39 --github-pr '${{ github.event.pull_request.number }}' \
40 --github-commit '${{ github.sha }}'