chore(release): v1.0.24
This commit is contained in:
parent
c8fb3f40ff
commit
9badeafda3
@ -1,5 +1,12 @@
|
||||
## <small>1.0.24 (2021-01-16)</small>
|
||||
|
||||
* fix: git push ([c8fb3f4](https://github.com/simonecorsi/mawesome/commit/c8fb3f4))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.23 (2021-01-16)</small>
|
||||
|
||||
* chore(release): v1.0.23 ([f41befa](https://github.com/simonecorsi/mawesome/commit/f41befa))
|
||||
* docs: added authors ([3de0e12](https://github.com/simonecorsi/mawesome/commit/3de0e12))
|
||||
|
||||
|
||||
|
10
index.js
10
index.js
@ -21289,20 +21289,12 @@ exports.default = new (class Git {
|
||||
this.add = (file) => this.exec(`add ${file}`);
|
||||
this.commit = (message) => this.exec(`commit -m "${message}"`);
|
||||
this.pull = () => __awaiter(this, void 0, void 0, function* () {
|
||||
const args = ['pull', 'origin', branch];
|
||||
// Check if the repo is unshallow
|
||||
if (yield this.isShallow()) {
|
||||
args.push('--unshallow');
|
||||
}
|
||||
const args = ['pull'];
|
||||
args.push('--tags');
|
||||
args.push(core.getInput('git-pull-method'));
|
||||
return this.exec(args.join(' '));
|
||||
});
|
||||
this.push = () => this.exec(`push origin ${branch} --follow-tags`);
|
||||
this.isShallow = () => __awaiter(this, void 0, void 0, function* () {
|
||||
const isShallow = yield this.exec('rev-parse --is-shallow-repository');
|
||||
return isShallow.trim().replace('\n', '') === 'true';
|
||||
});
|
||||
this.updateOrigin = (repo) => this.exec(`remote set-url origin ${repo}`);
|
||||
this.createTag = (tag) => this.exec(`tag -a ${tag} -m "${tag}"`);
|
||||
const githubToken = core.getInput('github-token', { required: true });
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mawesome",
|
||||
"version": "1.0.23",
|
||||
"version": "1.0.24",
|
||||
"description": "Generate awesome list from user starred repositories",
|
||||
"main": "index.js",
|
||||
"author": "Simone Corsi<simonecorsi.dev@gmail.com>",
|
||||
|
Loading…
x
Reference in New Issue
Block a user