fix: downgrade @actions/artifact to v1 for Gitea compatibility
Lint / pre-commit Linting (push) Successful in 51s
Test / Run Tests (push) Successful in 1m19s

This commit is contained in:
2026-05-16 22:21:45 +02:00
parent 05fe8a3dcd
commit 1874e823e3
5 changed files with 59 additions and 1927 deletions
+5 -3
View File
@@ -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(