Skip to content

Commit

Permalink
ignore permission changes
Browse files Browse the repository at this point in the history
those cannot be applied via GitHub's GraphQL API
  • Loading branch information
mhils committed Jul 10, 2023
1 parent 89762f9 commit 8caa572
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ async function run() {
console.log(event);
}

let ok = await exec.exec("git", ["add", "--all"]);
let ok = await exec.exec("git", ["reset"]);
if (ok !== 0) {
throw new Error("Failed to reset files.");
}

ok = await exec.exec("git", ["-c", "core.fileMode=false", "add", "--all"]);
if (ok !== 0) {
throw new Error("Failed to stage files.");
}
Expand Down

0 comments on commit 8caa572

Please sign in to comment.