We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696dae0 commit 8451047Copy full SHA for 8451047
1 file changed
.github/workflows/Label.yml
@@ -8,10 +8,10 @@ jobs:
8
- uses: actions/checkout@v6
9
with:
10
submodules: recursive
11
+ fetch-depth: 0 # fetch all commit history across all branches and tags
12
- name: If there are changes in PublicApi.Shipped.txt, fail the workflow
13
if: github.head_ref != 'action/ship-publicapi' # Same branch name specified in Release.yml
14
run: |
- git fetch origin HEAD # By default, actions/checkout does not fetch commit history, we fetch it here
15
$changes = git diff --numstat --shortstat origin/${{ github.base_ref }}...HEAD -- '**/PublicApi.Shipped.txt'
16
Write-Output "$changes"
17
if ($changes) {
0 commit comments