mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
Add logging
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -1585,6 +1585,7 @@ class State {
|
||||
const tmpDir = os_1.default.tmpdir();
|
||||
const file = path_1.default.join(tmpDir, crypto_1.default.randomBytes(8).readBigUInt64LE(0).toString());
|
||||
fs_1.default.writeFileSync(file, serialized);
|
||||
core.debug(`Persisting state includes info about ${this.processedIssuesIDs.size} issue(s)`);
|
||||
const artifactClient = artifact.create();
|
||||
try {
|
||||
yield artifactClient.uploadArtifact(State.ARTIFACT_NAME, [file], tmpDir);
|
||||
|
||||
@@ -44,6 +44,9 @@ export class State implements IState {
|
||||
);
|
||||
fs.writeFileSync(file, serialized);
|
||||
|
||||
core.debug(
|
||||
`Persisting state includes info about ${this.processedIssuesIDs.size} issue(s)`
|
||||
);
|
||||
const artifactClient = artifact.create();
|
||||
try {
|
||||
await artifactClient.uploadArtifact(State.ARTIFACT_NAME, [file], tmpDir);
|
||||
|
||||
Reference in New Issue
Block a user