actions: Fix scraper

This commit is contained in:
Owain van Brakel
2020-08-28 03:55:12 +02:00
parent 6d342d7abc
commit 547beaaef7
6 changed files with 96 additions and 84 deletions

View File

@@ -9,17 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
repository: open-osrs/runelite
ref: master
- uses: actions/checkout@v2.3.1
- uses: actions/checkout@v2.3.2
with:
repository: open-osrs/cache-client
ref: master
path: cache-client
- uses: actions/cache@v2.0.0
- uses: actions/cache@v2.1.1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
@@ -27,48 +23,58 @@ jobs:
${{ runner.os }}-gradle-
- name: Set up JDK 11
uses: actions/setup-java@v1.3.0
uses: actions/setup-java@v1.4.2
with:
java-version: 11
- name: Make gradlew executable
run: chmod +x ./gradlew
working-directory: /home/runner/work/runelite/runelite
- name: Make gradlew executable
run: chmod +x ./gradlew
working-directory: /home/runner/work/runelite/cache-client
working-directory: cache-client
- name: Assembling cache client
run: ./gradlew assemble --console=plain
working-directory: /home/runner/work/runelite/cache-client
- name: Assembling scraper
run: ./gradlew :wiki-scraper:assemble --console=plain
working-directory: /home/runner/work/runelite/runelite
- name: Building cache client
run: ./gradlew build --console=plain
working-directory: /home/runner/work/runelite/cache-client
- name: Building scraper
run: ./gradlew :wiki-scraper:build --console=plain
working-directory: /home/runner/work/runelite/runelite
working-directory: cache-client
- name: Downloading jagex cache
run: ./gradlew download --console=plain
working-directory: /home/runner/work/runelite/cache-client
working-directory: cache-client
- uses: actions/checkout@v2.3.2
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: /home/runner/work/runelite/runelite
working-directory: OpenOSRS
- name: Create NPC stats Pull Request
uses: Owain94/create-pull-request@master
env:
GITHUB_TOKEN: ${{ secrets.OpenOSRS }}
PULL_REQUEST_BRANCH: NPC-UPDATE
PULL_REQUEST_TITLE: 'Client: Update NPC stats'
PULL_REQUEST_BODY: This is an auto-generated PR with changes from the OSRS wiki
COMMIT_MESSAGE: 'Client: Update NPC stats'
PULL_REQUEST_LABELS: automated-pull-request, NPC stats
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.OpenOSRS }}
path: /home/runner/work/runelite/runelite/OpenOSRS
author: OpenOSRS <openosrs.github@gmail.com>
committer: OpenOSRS <openosrs.github@gmail.com>
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