File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -531,6 +531,7 @@ jobs:
531
531
- uses : actions/checkout@v4
532
532
with :
533
533
fetch-depth : 0
534
+ ref : ${{ github.event.pull_request.head.ref }}
534
535
token : ${{ secrets.ALGOLIA_BOT_TOKEN != '' && secrets.ALGOLIA_BOT_TOKEN || secrets.GITHUB_TOKEN }}
535
536
536
537
- name : Download all artifacts
Original file line number Diff line number Diff line change 14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
- - run : git push -d origin generated/${{ github.head_ref }} || true
17
+ - run : git push -d origin " generated/${{ github.head_ref }}" || true
Original file line number Diff line number Diff line change @@ -29,13 +29,11 @@ export async function getNbGitDiff({
29
29
} > ) : Promise < number > {
30
30
const checkHead = head === null ? '' : `...${ head } ` ;
31
31
32
- console . log ( `comparing "${ branch } ${ checkHead } "` ) ;
33
-
34
32
return parseInt (
35
33
(
36
- ( await run ( `git add -N . && git diff --shortstat "${ branch } ${ checkHead } " -- ${ path } | wc -l` , {
34
+ await run ( `git add -N . && git diff --shortstat "${ branch } ${ checkHead } " -- ${ path } | wc -l` , {
37
35
cwd,
38
- } ) ) || '0'
36
+ } )
39
37
) . trim ( ) ,
40
38
10 ,
41
39
) ;
You can’t perform that action at this time.
0 commit comments