[llvm] workflows/release-binaries: Restrict jobs based on owner instead of repo (PR #123797)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 10:10:32 PST 2025


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

Not really any functional change, just a clean up that could make it easier to share snippets with other repos.

>From fb226f3795207a9201216503ebf5df10a67c7dc3 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 21 Jan 2025 10:06:48 -0800
Subject: [PATCH] workflows/release-binaries: Restrict jobs based on owner
 instead of repo

Not really any functional change, just a clean up that could make it
easier to share snippets with other repos.
---
 .github/workflows/release-binaries.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 29be8195da68ac..f9a264e7cf48f1 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -49,7 +49,7 @@ jobs:
   prepare:
     name: Prepare to build binaries
     runs-on: ${{ inputs.runs-on }}
-    if: github.repository == 'llvm/llvm-project'
+    if: github.repository_owner == 'llvm'
     outputs:
       release-version: ${{ steps.vars.outputs.release-version }}
       ref: ${{ steps.vars.outputs.ref }}
@@ -177,7 +177,7 @@ jobs:
   build-release-package:
     name: "Build Release Package"
     needs: prepare
-    if: github.repository == 'llvm/llvm-project'
+    if: github.repository_owner == 'llvm'
     runs-on: ${{ needs.prepare.outputs.build-runs-on }}
     steps:
 
@@ -327,7 +327,7 @@ jobs:
       - prepare
       - build-release-package
     if: >-
-      github.repository == 'llvm/llvm-project'
+      github.repository_owner == 'llvm'
     runs-on: ${{ needs.prepare.outputs.test-runs-on }}
     steps:
     - name: Checkout Actions



More information about the llvm-commits mailing list