Add option to set remapped

This commit is contained in:
SeanOMik 2021-07-08 19:33:55 -04:00 committed by GitHub
parent 4d6b6af270
commit b23370e6a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,7 @@ const buildToolProvider: string = (core.getInput('buildToolProvider') || 'Spigot
let versions: string[] = fixArgArr((core.getInput('versions') || 'latest').toLowerCase().split(',')); let versions: string[] = fixArgArr((core.getInput('versions') || 'latest').toLowerCase().split(','));
const generateSrc: boolean = core.getInput('generateSrc') == 'true'; const generateSrc: boolean = core.getInput('generateSrc') == 'true';
const generateDoc: boolean = core.getInput('generateDoc') == 'true'; const generateDoc: boolean = core.getInput('generateDoc') == 'true';
const remapped: string = (core.getInput("remapped") || '');
const disableJavaCheck: boolean = core.getInput('disableJavaCheck') == 'true'; const disableJavaCheck: boolean = core.getInput('disableJavaCheck') == 'true';
const forceRun: boolean = core.getInput('forceRun') == 'true'; const forceRun: boolean = core.getInput('forceRun') == 'true';
@ -106,6 +107,11 @@ async function run(): Promise<{ code: number, msg?: string }> {
buildToolsArgs.push('--disable-java-check'); buildToolsArgs.push('--disable-java-check');
} }
if (remapped) {
buildToolsArgs.push("--remapped");
buildToolsArgs.push(remapped);
}
const tasks = []; const tasks = [];
for (const ver of versions) { for (const ver of versions) {
tasks.push(async (): Promise<void> => { tasks.push(async (): Promise<void> => {