[Github] Use sparse checkout in release asset audit (#148646)

This patch makes the release asset audit script use a sparse checkout
given we only need two files. This should make the action quite a bit
more efficient as it is presumably currently bottlenecked by checking
out the entire monorepo.
This commit is contained in:
Aiden Grossman 2025-07-25 07:40:04 -07:00 committed by GitHub
parent e21ee41be4
commit 965bb5d9f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,12 @@ jobs:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project' if: github.repository == 'llvm/llvm-project'
steps: steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6 - name: Checkout LLVM
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: |
.github/workflows/release-asset-audit.py
llvm/utils/git/requirements.txt
- name: "Run Audit Script" - name: "Run Audit Script"
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}