[llvm-branch-commits] [llvm] release/23.x: workflows: Remove unnecessary checkouts before uses of upload-release-artifact (#213830) (PR #214305)

Douglas Yung via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Aug 8 22:53:50 PDT 2026


https://github.com/dyung updated https://github.com/llvm/llvm-project/pull/214305

>From 35c1f3acdaad8c77106368cc555aadf77322dae9 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 5 Aug 2026 11:06:09 -0700
Subject: [PATCH] workflows: Remove unnecessary checkouts before uses of
 upload-release-artifact (#213830)

The workflow is now self-contained and checks out its own scripts, so we
don't need to do this in the calling workflow. The '$' prefix in the
uses tag tells github actions to load the action from the repository
directly rather than searching for it on the local file system.

https://github.blog/changelog/2026-07-30-reference-same-repository-actions-with-self-repository-syntax/
(cherry picked from commit 2437b03ee6cc066a66503f6dcb69e1c613f059be)
---
 .github/workflows/release-binaries.yml      | 14 +-------------
 .github/workflows/release-documentation.yml |  9 +--------
 .github/workflows/release-sources.yml       | 12 +-----------
 3 files changed, 3 insertions(+), 32 deletions(-)

diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 3c1b775419d06..cd27599403f56 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -372,20 +372,8 @@ jobs:
       attestations: write # For artifact attestations
 
     steps:
-      - name: Checkout Release Scripts
-        uses: actions/checkout at df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
-        with:
-          persist-credentials: false
-          sparse-checkout: |
-            .github/workflows/require-team-membership
-            .github/workflows/upload-release-artifact
-            .github/workflows/validate-release-version
-            llvm/utils/release/github-upload-release.py
-            llvm/utils/git/requirements.txt
-          sparse-checkout-cone-mode: false
-
       - name: Upload Artifacts
-        uses: ./.github/workflows/upload-release-artifact
+        uses: $/.github/workflows/upload-release-artifact
         with:
           release-version: ${{ needs.prepare.outputs.release-version }}
           artifact-id: ${{ needs.build-release-package.outputs.artifact-id }}
diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml
index a39d4dba87a5a..d0b6a9994edb5 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -199,16 +199,9 @@ jobs:
       attestations: write # For artifact attestations
 
     steps:
-     - uses: actions/checkout at df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
-       with:
-         persist-credentials: false
-         sparse-checkout: |
-           .github/workflows/upload-release-artifact
-         sparse-checkout-cone-mode: false
-
      - name: Upload Man Page Artifacts
        id: man-page-artifact-upload
-       uses: ./.github/workflows/upload-release-artifact
+       uses: $/.github/workflows/upload-release-artifact
        with:
          release-version: ${{ needs.release-documentation.outputs.man-page-release-version }}
          artifact-id: ${{ needs.release-documentation.outputs.man-page-artifact-id }}
diff --git a/.github/workflows/release-sources.yml b/.github/workflows/release-sources.yml
index 2a85253aa1df2..7b06dd91a157b 100644
--- a/.github/workflows/release-sources.yml
+++ b/.github/workflows/release-sources.yml
@@ -130,18 +130,8 @@ jobs:
       id-token: write
       attestations: write
     steps:
-      - name: Checkout Release Scripts
-        uses: actions/checkout at df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
-        with:
-          persist-credentials: false
-          sparse-checkout: |
-            .github/
-            llvm/utils/release/github-upload-release.py
-            llvm/utils/git/requirements.txt
-          sparse-checkout-cone-mode: false
-
       - name: Upload Artifacts
-        uses: ./.github/workflows/upload-release-artifact
+        uses: $/.github/workflows/upload-release-artifact
         with:
           release-version: ${{ inputs.release-version }}
           artifact-id: ${{ needs.release-sources.outputs.artifact-id }}



More information about the llvm-branch-commits mailing list