Skip to content

Commit 29573c4

Browse files
committed
Speed up code samples workflow
1 parent 8849d0f commit 29573c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/code_samples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
- name: Log target branch code_samples usage
101101
if: steps.list.outputs.CODE_SAMPLES_CHANGE != ''
102102
run: |
103-
git fetch origin
103+
git fetch origin --depth=1 ${{ github.head_ref }}
104104
git checkout origin/${{ github.head_ref }} -- tools/code_samples/code_samples_usage.php
105105
php tools/code_samples/code_samples_usage.php ${{ steps.list.outputs.CODE_SAMPLES_CHANGE }} > $HOME/code_samples_usage_target.txt
106106

0 commit comments

Comments
 (0)