Fix dirty-checking for workflows that use a Code Block (#3679)

This commit is contained in:
Jonathan Dobson
2025-10-10 06:24:02 -04:00
committed by GitHub
parent e08778993e
commit af23e27822
4 changed files with 63 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
function deepEqualStringArrays(
a: string[] | null | undefined,
b: string[] | null | undefined,
): boolean {
if (a === undefined && b === undefined) return true;
if (a === undefined || b === undefined) return false;
if (a === null && b === null) return true;
if (a === null || b === null) return false;
if (a.length !== b.length) return false;
return a.every((val, i) => val === b[i]);
}
export { deepEqualStringArrays };