@@ -16,12 +16,14 @@ jobs:
1616 - uses : actions/checkout@v4
1717 with :
1818 ref : ${{ inputs.ref }}
19- - name : Fetch base ref
19+ - name : Fetch comparison refs
2020 run : |
2121 if [ "${{ github.event_name }}" = "pull_request" ]; then
2222 git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.base.sha }}"
23+ git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.head.sha }}"
2324 else
2425 git fetch --no-tags --depth=1 origin "${{ github.event.before }}"
26+ git fetch --no-tags --depth=1 origin "${{ github.sha }}"
2527 fi
2628 - name : Lint URLs
2729 run : |
@@ -49,12 +51,14 @@ jobs:
4951 - uses : actions/checkout@v4
5052 with :
5153 ref : ${{ inputs.ref }}
52- - name : Fetch base ref
54+ - name : Fetch comparison refs
5355 run : |
5456 if [ "${{ github.event_name }}" = "pull_request" ]; then
5557 git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.base.sha }}"
58+ git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.head.sha }}"
5659 else
5760 git fetch --no-tags --depth=1 origin "${{ github.event.before }}"
61+ git fetch --no-tags --depth=1 origin "${{ github.sha }}"
5862 fi
5963 - name : Lint cross-references
6064 run : |
@@ -82,12 +86,14 @@ jobs:
8286 - uses : actions/checkout@v4
8387 with :
8488 ref : ${{ inputs.ref }}
85- - name : Fetch base ref
89+ - name : Fetch comparison refs
8690 run : |
8791 if [ "${{ github.event_name }}" = "pull_request" ]; then
8892 git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.base.sha }}"
93+ git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.head.sha }}"
8994 else
9095 git fetch --no-tags --depth=1 origin "${{ github.event.before }}"
96+ git fetch --no-tags --depth=1 origin "${{ github.sha }}"
9197 fi
9298 - name : Lint file sizes
9399 run : |
0 commit comments