diff --git a/index.js b/index.js index f36d92b..8528dae 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const core = require('@actions/core'); const version = process.argv[2]; // Получение версии OpenWRT из аргумента командной строки -// mediatek, ramips, x86, armsr +const SNAPSHOT_TARGETS_TO_BUILD = ['mediatek', 'ramips', 'x86', 'armsr']; const SNAPSHOT_SUBTARGETS_TO_BUILD = ['filogic', 'mt7622', 'mt7623', 'mt7629', 'mt7620', 'mt7621', 'mt76x8', '64', 'generic', 'armv8']; if (!version) { @@ -78,7 +78,7 @@ async function main() { for (const subtarget of subtargets) { const { vermagic, pkgarch } = await getDetails(target, subtarget); - if (version !== 'SNAPSHOT' || SNAPSHOT_SUBTARGETS_TO_BUILD.includes(subtarget)) { + if (version !== 'SNAPSHOT' || (SNAPSHOT_SUBTARGETS_TO_BUILD.includes(subtarget) && SNAPSHOT_TARGETS_TO_BUILD.includes(target))) { jobConfig.push({ tag: version, target,