Codeowners update script: Pull before push (#55493)

* Pull from git before pushing the codeowners update

* Allow trigginer the codeowners
This commit is contained in:
Orta Therox
2021-09-01 10:03:06 +00:00
committed by GitHub
parent fbd23a13c8
commit c00dae848d
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ main().then(() => {
runSequence([
["git", ["add", ".github/CODEOWNERS"]], // Add CODEOWNERS
["git", ["commit", "-m", `"🤖 Update CODEOWNERS"`]], // Commit all changes
["git", ["pull"]], // Ensure we're up-to-date
["git", ["push"]] // push the branch
]);
console.log(`Pushed new commit.`);