[llvm] workflows/premerge: Fix condition for macos job (PR #125237)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 07:07:11 PST 2025


https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/125237

None

>From 797ea332fd4f7c7b006b2f77234c38b0c9b9cc9d Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 31 Jan 2025 06:57:58 -0800
Subject: [PATCH] workflows/premerge: Fix condition for macos job

---
 .github/workflows/premerge.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index d7fa6718821861..91aa3eefde372c 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -139,8 +139,9 @@ jobs:
       group: ${{ github.workflow }}-macos-${{ github.event.pull_request.number || github.sha }}
       cancel-in-progress: true
     if: >-
+      github.repository_owner == 'llvm' &&
       (startswith(github.ref_name, 'release/') ||
-       startswith(github.base_ref, 'refs/heads/release/'))
+       startswith(github.base_ref, 'release/'))
     steps:
       - name: Checkout LLVM
         uses: actions/checkout at v4



More information about the llvm-commits mailing list