mirror of
https://github.com/actions/stale.git
synced 2025-12-12 13:07:28 +00:00
Add logging
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -1579,8 +1579,10 @@ class State {
|
|||||||
}
|
}
|
||||||
persist() {
|
persist() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (this.debug)
|
if (this.debug) {
|
||||||
|
core.debug('The state is not persisted in the debug mode');
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
const serialized = Array.from(this.processedIssuesIDs).join('|');
|
const serialized = Array.from(this.processedIssuesIDs).join('|');
|
||||||
const tmpDir = os_1.default.tmpdir();
|
const tmpDir = os_1.default.tmpdir();
|
||||||
const file = path_1.default.join(tmpDir, crypto_1.default.randomBytes(8).readBigUInt64LE(0).toString());
|
const file = path_1.default.join(tmpDir, crypto_1.default.randomBytes(8).readBigUInt64LE(0).toString());
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ export class State implements IState {
|
|||||||
|
|
||||||
private static readonly ARTIFACT_NAME = '_stale_state';
|
private static readonly ARTIFACT_NAME = '_stale_state';
|
||||||
async persist() {
|
async persist() {
|
||||||
if (this.debug) return;
|
if (this.debug) {
|
||||||
|
core.debug('The state is not persisted in the debug mode');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const serialized = Array.from(this.processedIssuesIDs).join('|');
|
const serialized = Array.from(this.processedIssuesIDs).join('|');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user