Skip to content

Commit 1acf8f1

Browse files
committed
chore: pr ref and cleanup fix
1 parent 21d548c commit 1acf8f1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
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

scripts/ci/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)