[llvm] workflows/release-binaries: Always pull composite actions from main branch (PR #100805)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 12:57:37 PDT 2024


================
@@ -148,6 +148,20 @@ jobs:
     if: github.repository == 'llvm/llvm-project'
     runs-on: ${{ inputs.runs-on }}
     steps:
+
+    - name: Checkout Actions
+      uses: actions/checkout at v4
+      with:
+        ref: ${{ (github.event_name == 'pull_request' && github.sha) || 'main' }}
+        sparse-checkout: |
+          .github/workflows/
+        sparse-checkout-cone-mode: false
+        path: workflows
+
+    - name: Setup Stage
----------------
boomanaiden154 wrote:

I'm assuming this moved up here so it can use the just pulled in action definition?

The subsequent LLVM checkout ends up overriding this?

https://github.com/llvm/llvm-project/pull/100805


More information about the llvm-commits mailing list