[EXPAND] [[messages]] messageTitle = "QB Update for GT 2.8 (#681)" messageBody = """ [QB] [DETAILS] details = ["Fixes many Quest Book issues", "Updates QB with changes in GT 2.8"] [DETAILS] """ [[messages]] messageTitle = "Buildscript Refactor (#681)" messageBody = """ [INTERNAL] [DETAILS] details = ["**Important: Buildscript has changed from `npx gulp...` or `gulp...` to `npm run gulp...`**!", "Moves to Node 16 Package Management + Typescript Strict Mode", "New Port QB, Check QB and Fix QB Tasks"] [DETAILS] """ [EXPAND] Co-authored-by: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Co-authored-by: Ghzdude <44148655+ghzdude@users.noreply.github.com> Co-authored-by: SparkedTheorem <162088357+SparkedTheorem@users.noreply.github.com>
19 lines
553 B
TypeScript
19 lines
553 B
TypeScript
import { modpackManifest } from "#globals";
|
|
import { makeArtifactNameBody } from "#utils/util.ts";
|
|
import sanitize from "sanitize-filename";
|
|
import { setOutput } from "@actions/core";
|
|
|
|
export async function makeArtifactNames(): Promise<void> {
|
|
const body = makeArtifactNameBody(modpackManifest.name);
|
|
const names: Record<string, string> = {
|
|
client: body + "-client",
|
|
server: body + "-server",
|
|
lang: body + "-lang",
|
|
mmc: body + "-mmc",
|
|
};
|
|
|
|
Object.keys(names).forEach((name) => {
|
|
setOutput(name, sanitize(names[name].toLowerCase()));
|
|
});
|
|
}
|