fix: correct typo in package.json and use unique temp dir for logs
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+4
-1
@@ -371,7 +371,10 @@ export async function monitorConsole(api, opts) {
|
|||||||
|
|
||||||
// Step 6: artifact upload
|
// Step 6: artifact upload
|
||||||
if (logToFile && stdoutBuffer.length > 0) {
|
if (logToFile && stdoutBuffer.length > 0) {
|
||||||
const tmpFile = path.join(os.tmpdir(), "screeps_console_log.txt");
|
const tmpDir = await fs.promises.mkdtemp(
|
||||||
|
path.join(os.tmpdir(), "screeps-monitor-"),
|
||||||
|
);
|
||||||
|
const tmpFile = path.join(tmpDir, "screeps_console_log.txt");
|
||||||
await writeLogFile(stdoutBuffer, tmpFile);
|
await writeLogFile(stdoutBuffer, tmpFile);
|
||||||
await uploadLogArtifact(tmpFile);
|
await uploadLogArtifact(tmpFile);
|
||||||
} else if (logToFile) {
|
} else if (logToFile) {
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "screeps-deploy-action",
|
"name": "screeps-deploy-action",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"description": "Deploys screeps code to the official game or an pirvate server.",
|
"description": "Deploys screeps code to the official game or a private server.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user