Simplify added verbosity
parent
d69be9baea
commit
38695bb26e
|
|
@ -2168,16 +2168,11 @@ class Versioning {
|
|||
*/
|
||||
static isDirty() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const output = yield system_1.default.run('sh', undefined, {
|
||||
input: Buffer.from('git status --porcelain'),
|
||||
silent: true,
|
||||
});
|
||||
core.info('Output: ');
|
||||
core.info(output);
|
||||
const output = yield this.git(['status', '--porcelain']);
|
||||
const isDirty = output !== '';
|
||||
if (isDirty) {
|
||||
core.info('Changes were made to the following files and folders:\n');
|
||||
core.info(output);
|
||||
core.warning('Changes were made to the following files and folders:\n');
|
||||
core.warning(output);
|
||||
}
|
||||
return isDirty;
|
||||
});
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -250,18 +250,12 @@ export default class Versioning {
|
|||
* Returns whether there are uncommitted changes that are not ignored.
|
||||
*/
|
||||
static async isDirty() {
|
||||
const output = await System.run('sh', undefined, {
|
||||
input: Buffer.from('git status --porcelain'),
|
||||
silent: true,
|
||||
});
|
||||
|
||||
core.info('Output: ');
|
||||
core.info(output);
|
||||
|
||||
const output = await this.git(['status', '--porcelain']);
|
||||
const isDirty = output !== '';
|
||||
|
||||
if (isDirty) {
|
||||
core.info('Changes were made to the following files and folders:\n');
|
||||
core.info(output);
|
||||
core.warning('Changes were made to the following files and folders:\n');
|
||||
core.warning(output);
|
||||
}
|
||||
|
||||
return isDirty;
|
||||
|
|
|
|||
Loading…
Reference in New Issue