Skip to content

Commit 8caa572

Browse files
committed
ignore permission changes
those cannot be applied via GitHub's GraphQL API
1 parent 89762f9 commit 8caa572

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ async function run() {
1717
console.log(event);
1818
}
1919

20-
let ok = await exec.exec("git", ["add", "--all"]);
20+
let ok = await exec.exec("git", ["reset"]);
21+
if (ok !== 0) {
22+
throw new Error("Failed to reset files.");
23+
}
24+
25+
ok = await exec.exec("git", ["-c", "core.fileMode=false", "add", "--all"]);
2126
if (ok !== 0) {
2227
throw new Error("Failed to stage files.");
2328
}

0 commit comments

Comments
 (0)