This repository has been archived by the owner on Apr 8, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 450
75 lines (61 loc) · 2.13 KB
/
scraper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: OpenOSRS - Scraper
on:
schedule:
- cron: 0 0 * * *
jobs:
scrape-npcs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repository: open-osrs/cache-client
ref: master
path: cache-client
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: 11
cache: 'gradle'
- name: Make gradlew executable
run: chmod +x ./gradlew
working-directory: cache-client
- name: Assembling cache client
run: ./gradlew assemble --console=plain
working-directory: cache-client
- name: Downloading jagex cache
run: ./gradlew download --console=plain
working-directory: cache-client
- uses: actions/[email protected]
with:
repository: open-osrs/runelite
ref: master
path: OpenOSRS
- name: Make gradlew executable
run: chmod +x ./gradlew
working-directory: OpenOSRS
- name: Assembling scraper
run: ./gradlew :wiki-scraper:assemble --console=plain
working-directory: OpenOSRS
- name: Building cache client
run: ./gradlew build --console=plain
working-directory: cache-client
- name: Building scraper
run: ./gradlew :wiki-scraper:build --console=plain
working-directory: OpenOSRS
- name: Scraping NPC stats
run: ./gradlew :wiki-scraper:npcStatsScrape --console=plain
working-directory: OpenOSRS
- name: Create NPC stats Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.OpenOSRS }}
path: /home/runner/work/runelite/runelite/OpenOSRS
author: OpenOSRS <[email protected]>
committer: OpenOSRS <[email protected]>
branch: NPC-UPDATE
commit-message: 'client: Update NPC stats'
title: 'client: Update NPC stats'
body: This is an auto-generated PR with changes from the OSRS wiki
labels: automated-pull-request, NPC stats
signoff: false