Skip to content

Commit 4ef3792

Browse files
fabiobaltierinashif
authored andcommitted
ci: pr_metadata_check: use sparse checkout and only install PyGithub
This step only needs one script and one python dep, no need to checkout and instally the whole thing. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
1 parent 1537081 commit 4ef3792

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/pr_metadata_check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
27+
with:
28+
sparse-checkout: scripts/ci/do_not_merge.py
29+
sparse-checkout-cone-mode: false
2730

2831
- name: Set up Python
2932
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3033
with:
3134
python-version: 3.12
32-
cache: pip
33-
cache-dependency-path: scripts/requirements-actions.txt
3435

3536
- name: Install Python dependencies
3637
run: |
37-
pip install -r scripts/requirements-actions.txt --require-hashes
38+
pip install -U PyGithub
3839
3940
- name: Run the check script
4041
env:

0 commit comments

Comments
 (0)