Module: kamailio
Branch: master
Commit: 330543f46cbb6bf815ebf77c98378314091197ce
URL: 
https://github.com/kamailio/kamailio/commit/330543f46cbb6bf815ebf77c98378314091197ce

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2025-04-03T14:37:14+02:00

github: pull_request, always use scripts from master [skip ci]

---

Modified: .github/workflows/pull_request.yml

---

Diff:  
https://github.com/kamailio/kamailio/commit/330543f46cbb6bf815ebf77c98378314091197ce.diff
Patch: 
https://github.com/kamailio/kamailio/commit/330543f46cbb6bf815ebf77c98378314091197ce.patch

---

diff --git a/.github/workflows/pull_request.yml 
b/.github/workflows/pull_request.yml
index cdfd9f3a3fd..35dda521756 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -23,15 +23,25 @@ jobs:
     permissions:
       contents: read # to fetch code (actions/checkout)
     steps:
+      - name: Check out scripts folder to the runner
+        uses: actions/checkout@v4
+        with:
+          ref: master
+          path: actions
+          sparse-checkout: |
+            .github/scripts/check-cmake-format.sh
+          sparse-checkout-cone-mode: false
       - name: Check out the repository to the runner
         uses: actions/checkout@v4
         with:
+          path: source
           ref: ${{ github.event.pull_request.head.sha }}
       - uses: awalsh128/cache-apt-pkgs-action@v1.5.0
         with:
           packages: cmake-format
       - name: Run scripts/check-cmake-format.sh
-        run: ./.github/scripts/check-cmake-format.sh
+        run: ${{ github.workspace 
}}/actions/.github/scripts/check-cmake-format.sh
+        working-directory: ${{ github.workspace }}/source
         env:
           ref: ${{ github.event.pull_request.head.sha }}
           FETCH_DEPTH: 50
@@ -40,12 +50,22 @@ jobs:
     permissions:
       contents: read # to fetch code (actions/checkout)
     steps:
+      - name: Check out scripts folder to the runner
+        uses: actions/checkout@v4
+        with:
+          ref: master
+          path: actions
+          sparse-checkout: |
+            .github/scripts/check-commit.sh
+          sparse-checkout-cone-mode: false
       - name: Check out the repository to the runner
         uses: actions/checkout@v4
         with:
+          path: source
           ref: ${{ github.event.pull_request.head.sha }}
       - name: Run scripts/check-commit.sh
-        run: ./.github/scripts/check-commit.sh
+        run: ${{ github.workspace }}/actions/.github/scripts/check-commit.sh
+        working-directory: ${{ github.workspace }}/source
         env:
           ref: ${{ github.event.pull_request.head.sha }}
           FETCH_DEPTH: 50

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to