1
0
mirror of https://github.com/actions/checkout.git synced 2026-03-10 09:01:44 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Jayen
d76540eddd
Merge 9ec5884c0c into 8edcb1bdb4 2025-07-28 22:56:46 +07:00
Tingluo Huang
8edcb1bdb4
Update CODEOWNERS for actions (#2224) 2025-07-23 09:20:20 -04:00
Jayen
9ec5884c0c
set default branch name on initialization to main 2025-03-29 17:13:06 +06:00
3 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
* @actions/actions-launch
* @actions/actions-runtime

1
dist/index.js vendored
View File

@ -711,6 +711,7 @@ class GitCommandManager {
}
init() {
return __awaiter(this, void 0, void 0, function* () {
yield this.config('init.defaultBranch', 'main', true, true);
yield this.execGit(['init', this.workingDirectory]);
});
}

View File

@ -328,6 +328,7 @@ class GitCommandManager {
}
async init(): Promise<void> {
await this.config('init.defaultBranch', 'main', true, true)
await this.execGit(['init', this.workingDirectory])
}