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

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 3 21:36:47 PDT 2026


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

The workflow is on 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/

>From 2c6f0d854d6dc70039f6e37aa1de9d594e19ce66 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Mon, 3 Aug 2026 21:33:05 -0700
Subject: [PATCH] workflows: Remove unnecessary checkouts before uses of
 upload-release-artifact

The workflow is on 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/
---
 .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 bb10ff748188c..f2f50710cc0a9 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