fix: `check-changed-files`-job always failing on `main` (#969)
parent
22c4d29db5
commit
f08a2271fe
|
@ -3,15 +3,14 @@ import { execSync } from "child_process";
|
|||
|
||||
const diff = execSync(`git diff --name-only origin/main HEAD`).toString();
|
||||
|
||||
const files = diff.trim().split("\n");
|
||||
const files = diff
|
||||
.trim()
|
||||
.split("\n")
|
||||
.map((file) => file.trim())
|
||||
.filter(Boolean);
|
||||
|
||||
console.log("ℹ️ Changed files:");
|
||||
console.log(
|
||||
files
|
||||
.filter(Boolean)
|
||||
.map((str) => ` - ${str}`)
|
||||
.join("\n")
|
||||
);
|
||||
console.log(files.map((str) => ` - ${str}`).join("\n"));
|
||||
|
||||
try {
|
||||
console.log("⏳ Checking type errors..");
|
||||
|
|
Loading…
Reference in New Issue