More verbose dirty branch
parent
14b33954b5
commit
d69be9baea
|
|
@ -2168,7 +2168,12 @@ 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 this.git(['status', '--porcelain'], { silent: true });
|
const output = yield system_1.default.run('sh', undefined, {
|
||||||
|
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.info('Changes were made to the following files and folders:\n');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -250,9 +250,21 @@ 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 this.git(['status', '--porcelain']);
|
const output = await System.run('sh', undefined, {
|
||||||
|
input: Buffer.from('git status --porcelain'),
|
||||||
|
silent: true,
|
||||||
|
});
|
||||||
|
|
||||||
return output !== '';
|
core.info('Output: ');
|
||||||
|
core.info(output);
|
||||||
|
|
||||||
|
const isDirty = output !== '';
|
||||||
|
if (isDirty) {
|
||||||
|
core.info('Changes were made to the following files and folders:\n');
|
||||||
|
core.info(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
return isDirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue