Skip to content

Commit 8451047

Browse files
authored
Fetch all?
1 parent 696dae0 commit 8451047

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/Label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
- uses: actions/checkout@v6
99
with:
1010
submodules: recursive
11+
fetch-depth: 0 # fetch all commit history across all branches and tags
1112
- name: If there are changes in PublicApi.Shipped.txt, fail the workflow
1213
if: github.head_ref != 'action/ship-publicapi' # Same branch name specified in Release.yml
1314
run: |
14-
git fetch origin HEAD # By default, actions/checkout does not fetch commit history, we fetch it here
1515
$changes = git diff --numstat --shortstat origin/${{ github.base_ref }}...HEAD -- '**/PublicApi.Shipped.txt'
1616
Write-Output "$changes"
1717
if ($changes) {

0 commit comments

Comments
 (0)