From 3bfa8c22978836c165306cbf3130d7d48731ad5c Mon Sep 17 00:00:00 2001 From: Vishal Kumar Date: Sat, 24 May 2025 16:22:47 +0530 Subject: [PATCH] ci: Fix: Fetch latest codebase before running checkers Need rebase and latest codebase for kernel checkers Signed-off-by: Vishal Kumar --- .github/actions/sync/action.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/actions/sync/action.yml diff --git a/.github/actions/sync/action.yml b/.github/actions/sync/action.yml new file mode 100644 index 0000000000000..726cd428e1042 --- /dev/null +++ b/.github/actions/sync/action.yml @@ -0,0 +1,24 @@ +name: Sync workspace +description: Sync workspace + +runs: + using: "composite" + steps: + - name: Checkout PR branch + uses: actions/checkout@v4 + shell: bash + with: + fetch-depth: 0 + + - name: Configure Git + shell: bash + run: | + git config --global user.name "github-actions" + git config --global user.email "github-actions@github.com" + + - name: Sync with latest changes + shell: bash + run: | + echo "Syncing with latest changes..." + git fetch origin ${{ github.base_ref }} + git merge origin/${{ github.base_ref }}