Skip to content

Commit 24712ba

Browse files
authored
Fix head
1 parent ee314a7 commit 24712ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/Label.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.head_ref != 'action/ship-publicapi' # Same branch name specified in Release.yml
1313
run: |
1414
git fetch origin ${{ github.base_ref }}
15-
$changes = git diff --numstat --shortstat origin/${{ github.base_ref }}...HEAD -- '**/PublicApi.Shipped.txt'
15+
$changes = git diff --numstat --shortstat origin/${{ github.base_ref }}...${{ github.head_ref }} -- '**/PublicApi.Shipped.txt'
1616
Write-Output "$changes"
1717
if ($changes) {
1818
Write-Error "Changes detected in PublicApi.Shipped.txt files. Public API changes must be shipped through the release process, not in regular pull requests."
@@ -29,7 +29,7 @@ jobs:
2929
Write-Output "This is a ship-publicapi PR, labeling as Type/Maintenance"
3030
} else {
3131
# For regular PRs, check for API changes
32-
$changes = git diff origin/${{ github.base_ref }}...HEAD -- '**/PublicApi.Unshipped.txt'
32+
$changes = git diff origin/${{ github.base_ref }}...${{ github.head_ref }} -- '**/PublicApi.Unshipped.txt'
3333
Write-Output "$changes"
3434
3535
if ($changes) {

0 commit comments

Comments
 (0)