Simplify added verbosity

pull/259/head
Webber 2021-05-09 22:03:17 +02:00
parent d69be9baea
commit 38695bb26e
3 changed files with 8 additions and 19 deletions

11
dist/index.js vendored
View File

@ -2168,16 +2168,11 @@ class Versioning {
*/ */
static isDirty() { static isDirty() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const output = yield system_1.default.run('sh', undefined, { const output = yield this.git(['status', '--porcelain']);
input: Buffer.from('git status --porcelain'),
silent: true,
});
core.info('Output: ');
core.info(output);
const isDirty = output !== ''; const isDirty = output !== '';
if (isDirty) { if (isDirty) {
core.info('Changes were made to the following files and folders:\n'); core.warning('Changes were made to the following files and folders:\n');
core.info(output); core.warning(output);
} }
return isDirty; return isDirty;
}); });

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -250,18 +250,12 @@ export default class Versioning {
* Returns whether there are uncommitted changes that are not ignored. * Returns whether there are uncommitted changes that are not ignored.
*/ */
static async isDirty() { static async isDirty() {
const output = await System.run('sh', undefined, { const output = await this.git(['status', '--porcelain']);
input: Buffer.from('git status --porcelain'),
silent: true,
});
core.info('Output: ');
core.info(output);
const isDirty = output !== ''; const isDirty = output !== '';
if (isDirty) { if (isDirty) {
core.info('Changes were made to the following files and folders:\n'); core.warning('Changes were made to the following files and folders:\n');
core.info(output); core.warning(output);
} }
return isDirty; return isDirty;