Skip to content

Commit 53a2baa

Browse files
committed
ci: Fix: Fetch latest codebase before running checkers
Need rebase and latest codebase for kernel checkers Signed-off-by: Vishal Kumar <viskuma@qti.qualcomm.com>
1 parent ecff6bf commit 53a2baa

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/actions/sync/action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync workspace
2+
description: Sync workspace
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Checkout PR branch
8+
uses: actions/checkout@v4
9+
shell: bash
10+
with:
11+
fetch-depth: 0
12+
13+
- name: Configure Git
14+
shell: bash
15+
run: |
16+
git config --global user.name "github-actions"
17+
git config --global user.email "github-actions@github.com"
18+
19+
- name: Sync with latest changes
20+
shell: bash
21+
run: |
22+
echo "Syncing with latest changes..."
23+
git fetch origin ${{ github.base_ref }}
24+
git merge origin/${{ github.base_ref }}

.github/workflows/kernel_checkers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
kernel_src: ${{ needs.prepare.outputs.kernel_src }}
2929
base_sha: ${{ needs.prepare.outputs.base_sha }}
3030
head_sha: ${{ needs.prepare.outputs.head_sha }}
31+
base_branch: ${{ github.base_ref }}
3132

3233
strategy:
3334
matrix:

0 commit comments

Comments
 (0)