]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
.github/workflows: use main branch for config diff 67320/head
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 11 Feb 2026 16:30:22 +0000 (11:30 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 11 Feb 2026 23:55:55 +0000 (18:55 -0500)
This script does not exist for the "head" reference of backport PRs.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
.github/workflows/diff-ceph-config.yml

index 55f7cfaa88d92744013d0fe0b82300ca42dc9f19..4709163d822c9c6ec1af604fa49fa4195b4765d2 100644 (file)
@@ -1,5 +1,6 @@
-name: Check ceph config changes
+---
 
+name: Check Ceph config changes
 on:
   pull_request_target:
     types:
@@ -7,16 +8,12 @@ on:
       - synchronize
       - edited
       - reopened
-
 permissions:
   issues: write
   contents: read
   pull-requests: write
-
 jobs:
   pull_request:
-    runs-on: ubuntu-latest
-
     env:
       PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
       PR_NUMBER: ${{ github.event.pull_request.number }}
@@ -24,19 +21,20 @@ jobs:
       BASE_REPO_URL: ${{ github.event.pull_request.base.repo.clone_url }}
       BASE_REF: ${{ github.event.pull_request.base.ref }}
       HEAD_REPO_URL: ${{ github.event.pull_request.head.repo.clone_url }}
-
+    if: github.repository == 'ceph/ceph'
+    runs-on: ubuntu-latest
     steps:
-      - name: Checkout ceph.git
+      - name: Checkout main branch for pull_request_target
         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
         with:
-          ref: ${{ github.event.pull_request.head.sha }}
+          ref: 'refs/heads/main'
           path: ceph
           sparse-checkout: |
             src/script
             src/common/options
             .github/workflows
 
-      - name: Get common ancestor between PR and ceph upstream main branch
+      - name: Get common ancestor between PR and Ceph upstream main branch
         id: get_common_ancestor
         working-directory: ceph
         env: