Simplify added verbosity
parent
d69be9baea
commit
38695bb26e
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
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.
|
* 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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue