Skip to content

Commit 12ad957

Browse files
authored
chore: CI: avoid fetching full repo in PR Release (#12309)
1 parent 690648d commit 12ad957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pr-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
run: |
6262
git init --bare lean4.git
6363
git -C lean4.git remote add origin https://github.com/${{ github.repository_owner }}/lean4.git
64-
git -C lean4.git fetch -n origin master
64+
# we only need to fetch the history; note this flag is sticky
65+
git -C lean4.git fetch -n origin --filter=tree:0 master
6566
git -C lean4.git fetch -n origin "${{ steps.workflow-info.outputs.sourceHeadSha }}"
6667
6768
# Create both the original tag and the SHA-suffixed tag

0 commit comments

Comments
 (0)