chore(release): v1.0.25
This commit is contained in:
parent
17c5d8550a
commit
14ccc9727e
23
CHANGELOG.md
23
CHANGELOG.md
@ -1,20 +1,17 @@
|
||||
## <small>1.0.25 (2021-01-16)</small>
|
||||
|
||||
* fix: should fix unshallow repo ([17c5d85](https://github.com/simonecorsi/mawesome/commit/17c5d85))
|
||||
|
||||
|
||||
|
||||
## <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))
|
||||
|
||||
|
||||
|
||||
## <small>1.0.22 (2021-01-16)</small>
|
||||
|
||||
* chore(release): v1.0.22 ([3f66738](https://github.com/simonecorsi/mawesome/commit/3f66738))
|
||||
* chore(release): v1.0.23 ([f41befa](https://github.com/simonecorsi/mawesome/commit/f41befa))
|
||||
* chore(release): v1.0.24 ([9badeaf](https://github.com/simonecorsi/mawesome/commit/9badeaf))
|
||||
* fix: git pull strategy ([edb4a38](https://github.com/simonecorsi/mawesome/commit/edb4a38))
|
||||
* fix: git push ([c8fb3f4](https://github.com/simonecorsi/mawesome/commit/c8fb3f4))
|
||||
* docs: added authors ([3de0e12](https://github.com/simonecorsi/mawesome/commit/3de0e12))
|
||||
|
||||
|
||||
|
||||
|
8
index.js
8
index.js
@ -21265,6 +21265,10 @@ const { GITHUB_REPOSITORY, GITHUB_REF } = process.env;
|
||||
const branch = GITHUB_REF === null || GITHUB_REF === void 0 ? void 0 : GITHUB_REF.replace('refs/heads/', '');
|
||||
exports.default = new (class Git {
|
||||
constructor() {
|
||||
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.exec = (command) => {
|
||||
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
||||
let execOutput = '';
|
||||
@ -21290,6 +21294,10 @@ exports.default = new (class Git {
|
||||
this.commit = (message) => this.exec(`commit -m "${message}"`);
|
||||
this.pull = () => __awaiter(this, void 0, void 0, function* () {
|
||||
const args = ['pull'];
|
||||
// Check if the repo is unshallow
|
||||
if (yield this.isShallow()) {
|
||||
args.push('--unshallow');
|
||||
}
|
||||
args.push('--tags');
|
||||
args.push(core.getInput('git-pull-method'));
|
||||
return this.exec(args.join(' '));
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mawesome",
|
||||
"version": "1.0.24",
|
||||
"version": "1.0.25",
|
||||
"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