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:
531531 - uses : actions/checkout@v4
532532 with :
533533 fetch-depth : 0
534+ ref : ${{ github.event.pull_request.head.ref }}
534535 token : ${{ secrets.ALGOLIA_BOT_TOKEN != '' && secrets.ALGOLIA_BOT_TOKEN || secrets.GITHUB_TOKEN }}
535536
536537 - name : Download all artifacts
Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@v4
1616
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({
2929} > ) : Promise < number > {
3030 const checkHead = head === null ? '' : `...${ head } ` ;
3131
32- console . log ( `comparing "${ branch } ${ checkHead } "` ) ;
33-
3432 return parseInt (
3533 (
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` , {
3735 cwd,
38- } ) ) || '0'
36+ } )
3937 ) . trim ( ) ,
4038 10 ,
4139 ) ;
You can’t perform that action at this time.
0 commit comments