[llvm] Fix validate checkout (PR #210471)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 17:52:46 PDT 2026


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

None

>From 3061c1fc829f1bc8784b65d222c6e12261d60a5c Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 17 Jul 2026 14:18:36 -0700
Subject: [PATCH 1/3] XXX: Test release-binaries-all

---
 .github/workflows/release-binaries-all.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/release-binaries-all.yml b/.github/workflows/release-binaries-all.yml
index 2e2869e4073da..899ee5bdfb469 100644
--- a/.github/workflows/release-binaries-all.yml
+++ b/.github/workflows/release-binaries-all.yml
@@ -62,7 +62,6 @@ concurrency:
 jobs:
   setup-variables:
     if: >-
-      (github.event_name != 'pull_request' || github.event.action != 'closed')
     runs-on: ubuntu-24.04
     outputs:
       release-version: ${{ steps.vars.outputs.release-version }}

>From 43f8fac45f4769f1355e5d2c6d6284de7d7bb585 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 17 Jul 2026 17:37:55 -0700
Subject: [PATCH 2/3] XXX: DEBUG

---
 .github/workflows/release-binaries-all.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/release-binaries-all.yml b/.github/workflows/release-binaries-all.yml
index 899ee5bdfb469..e7989ee46b285 100644
--- a/.github/workflows/release-binaries-all.yml
+++ b/.github/workflows/release-binaries-all.yml
@@ -68,7 +68,6 @@ jobs:
       upload: ${{ steps.vars.outputs.upload }}
     steps:
       - name: Validate Input
-        if: inputs.release-version != ''
         uses: ./.github/workflows/validate-release-version
         with:
           release-version: ${{ inputs.release-version }}

>From dfac9b48ed494a9b1c8cbb2c95de0a54d5aab395 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 17 Jul 2026 17:44:03 -0700
Subject: [PATCH 3/3] workflows: Add missing checkouts when using
 validate-release-version

We need to make sure all composite workflows we use are checked out
manually from th egit repo.
---
 .github/workflows/release-binaries-all.yml | 7 +++++++
 .github/workflows/release-binaries.yml     | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/.github/workflows/release-binaries-all.yml b/.github/workflows/release-binaries-all.yml
index e7989ee46b285..afc38ffaa8b7f 100644
--- a/.github/workflows/release-binaries-all.yml
+++ b/.github/workflows/release-binaries-all.yml
@@ -67,6 +67,13 @@ jobs:
       release-version: ${{ steps.vars.outputs.release-version }}
       upload: ${{ steps.vars.outputs.upload }}
     steps:
+      - uses: actions/checkout at de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+        with:
+          persist-credentials: false
+          sparse-checkout: |
+            .github/workflows/validate-release-version
+          sparse-checkout-cone-mode: false
+
       - name: Validate Input
         uses: ./.github/workflows/validate-release-version
         with:
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index d2dbb656d371d..1b098e2d2c3c0 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -72,6 +72,12 @@ jobs:
       attestation-name: ${{ steps.vars.outputs.attestation-name }}
 
     steps:
+    - uses: actions/checkout at de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+      with:
+        persist-credentials: false
+        sparse-checkout: |
+          .github/workflows/validate-release-version
+        sparse-checkout-cone-mode: false
     - name: Validate Release Version
       if: inputs.release-version != ''
       uses: ./.github/workflows/validate-release-version



More information about the llvm-commits mailing list