actions: More GitHub actions (#1636)
* actions: Run in parallel * actions: NPC stats scraper * actions: Rename actions * actions: Auto approve NPC stats updates * gradle: Add tasks for different wiki scrape actions * actions: Add item stats scraper * actions: run scraper on a schedule (twice a week) * actions: gradle wrapper updater
This commit is contained in:
@@ -23,12 +23,34 @@ dependencies {
|
||||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: jupiter
|
||||
}
|
||||
|
||||
task scrape {
|
||||
task npcStatsScrape {
|
||||
doLast {
|
||||
def path = sourceSets.main.runtimeClasspath
|
||||
def loader = new URLClassLoader(path.collect { f -> f.toURI().toURL() } as URL[])
|
||||
def scrape = loader.loadClass('net.runelite.data.App')
|
||||
scrape.main();
|
||||
scrape.npcStats(rootProject.file("./runelite-client/src/main/resources/"));
|
||||
|
||||
loader.close()
|
||||
}
|
||||
}
|
||||
|
||||
task itemStatsScrape {
|
||||
doLast {
|
||||
def path = sourceSets.main.runtimeClasspath
|
||||
def loader = new URLClassLoader(path.collect { f -> f.toURI().toURL() } as URL[])
|
||||
def scrape = loader.loadClass('net.runelite.data.App')
|
||||
scrape.itemStats(rootProject.file("./runelite-client/src/main/resources/"));
|
||||
|
||||
loader.close()
|
||||
}
|
||||
}
|
||||
|
||||
task itemLimitsScrape {
|
||||
doLast {
|
||||
def path = sourceSets.main.runtimeClasspath
|
||||
def loader = new URLClassLoader(path.collect { f -> f.toURI().toURL() } as URL[])
|
||||
def scrape = loader.loadClass('net.runelite.data.App')
|
||||
scrape.itemLimits(rootProject.file("./runelite-client/src/main/resources/net/runelite/client/plugins/grandexchange/"));
|
||||
|
||||
loader.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user