File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -290,11 +290,6 @@ jobs:
290290 > infection.json5
291291 jq . infection.json5
292292
293- - name : " Determine default branch"
294- id : default-branch
295- run : |
296- echo "name=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')" >> "$GITHUB_OUTPUT"
297-
298293 - name : " Restore result cache"
299294 uses : actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
300295 with :
@@ -305,9 +300,9 @@ jobs:
305300
306301 - name : " Run infection"
307302 run : |
308- git fetch --depth=1 origin ${{ steps.default-branch.outputs.name }}
303+ git fetch --depth=1 origin "$GITHUB_BASE_REF"
309304 infection \
310- --git-diff-base=origin/${{ steps.default-branch.outputs.name }} \
305+ --git-diff-base=origin/"$GITHUB_BASE_REF" \
311306 --git-diff-lines \
312307 --ignore-msi-with-no-mutations \
313308 --min-msi=100 \
You can’t perform that action at this time.
0 commit comments