fix: downgrade @actions/artifact to v1 for Gitea compatibility
This commit is contained in:
+5
-3
@@ -1,5 +1,5 @@
|
||||
import * as core from "@actions/core";
|
||||
import { DefaultArtifactClient } from "@actions/artifact";
|
||||
import { create } from "@actions/artifact";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import os from "os";
|
||||
@@ -143,9 +143,11 @@ export async function uploadLogArtifacts(
|
||||
) {
|
||||
if (!filePaths || filePaths.length === 0) return;
|
||||
try {
|
||||
const client = new DefaultArtifactClient();
|
||||
const client = create();
|
||||
const rootDir = path.dirname(filePaths[0]);
|
||||
await client.uploadArtifact(artifactName, filePaths, rootDir);
|
||||
await client.uploadArtifact(artifactName, filePaths, rootDir, {
|
||||
continueOnError: true,
|
||||
});
|
||||
core.info(`[Monitor] Console logs uploaded as artifact '${artifactName}'.`);
|
||||
} catch (err) {
|
||||
core.warning(
|
||||
|
||||
Reference in New Issue
Block a user