Skip to content

Commit f338545

Browse files
committed
github actions: validate-kernel-commits: Clone kernel-src-tree-tools
We are using two scripts from that repo and there will be more. Just clone the whole thing instead of fetching scripts one by one.
1 parent a45414f commit f338545

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/validate-kernel-commits.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
run: |
2424
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
2525
26-
- name: Download check_kernel_commits.py
27-
run: |
28-
curl -sL \
29-
https://raw.githubusercontent.com/ctrliq/kernel-src-tree-tools/mainline/check_kernel_commits.py \
30-
-o check_kernel_commits.py
31-
chmod +x check_kernel_commits.py
26+
- name: Checkout kernel-src-tree-tools
27+
uses: actions/checkout@v4
28+
with:
29+
repository: ctrliq/kernel-src-tree-tools
30+
ref: 'mainline'
31+
path: kernel-src-tree-tools
3232

3333
- name: Set up Python
3434
uses: actions/setup-python@v5
@@ -37,8 +37,9 @@ jobs:
3737

3838
- name: Run upstream fixes check
3939
id: check-kernel-commits
40+
working-directory: kernel-src-tree-tools
4041
run: |
41-
python3 check_kernel_commits.py --repo . --pr_branch "${{ github.head_ref }}" --base_branch "${{ github.base_ref }}" --markdown --check-cves | tee result.txt
42+
python3 check_kernel_commits.py --repo .. --pr_branch "${{ github.head_ref }}" --base_branch "${{ github.base_ref }}" --markdown --check-cves | tee ../result.txt
4243
# Save non-empty results for PR comment
4344
if grep -q -v "All referenced commits exist upstream and have no Fixes: tags." result.txt; then
4445
echo "has_findings=true" >> $GITHUB_OUTPUT
@@ -66,17 +67,11 @@ jobs:
6667
./configure
6768
make -j$(nproc)
6869
69-
- name: Download run_interdiff.py
70-
run: |
71-
curl -sL \
72-
https://raw.githubusercontent.com/ctrliq/kernel-src-tree-tools/mainline/run_interdiff.py \
73-
-o run_interdiff.py
74-
chmod +x run_interdiff.py
75-
7670
- name: Run interdiff check
7771
id: interdiff
72+
working-directory: kernel-src-tree-tools
7873
run: |
79-
python3 run_interdiff.py --repo . --pr_branch "${{ github.head_ref }}" --base_branch "${{ github.base_ref }}" --markdown --interdiff ./patchutils/src/interdiff | tee interdiff_result.txt
74+
python3 run_interdiff.py --repo .. --pr_branch "${{ github.head_ref }}" --base_branch "${{ github.base_ref }}" --markdown --interdiff ../patchutils/src/interdiff | tee ../interdiff_result.txt
8075
# Save non-empty results for PR comment
8176
if grep -q -v "All backported commits match their upstream counterparts." interdiff_result.txt; then
8277
echo "has_differences=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)