actions: Fix scraper
This commit is contained in:
46
.github/workflows/gradle.yml
vendored
46
.github/workflows/gradle.yml
vendored
@@ -9,44 +9,50 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Update Gradle Wrapper
|
- name: Update Gradle Wrapper
|
||||||
run: ./gradlew wrapper --gradle-version $(curl -s https://api.github.com/repos/gradle/gradle/releases/latest | grep -Po '"name":.*?[^\\]",' | sed -r 's/[\"name:, ]+//g') --distribution-type all --console=plain
|
run: ./gradlew wrapper --gradle-version $(curl -s https://api.github.com/repos/gradle/gradle/releases/latest | grep -Po '"name":.*?[^\\]",' | sed -r 's/[\"name:, ]+//g') --distribution-type all --console=plain
|
||||||
- name: Create Gradle wrapper update Pull Request
|
- name: Create Gradle wrapper update Pull Request
|
||||||
uses: Owain94/create-pull-request@master
|
uses: peter-evans/create-pull-request@v3
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.OpenOSRS }}
|
token: ${{ secrets.OpenOSRS }}
|
||||||
PULL_REQUEST_BRANCH: GRADLE-WRAPPER-UPDATE
|
author: OpenOSRS <openosrs.github@gmail.com>
|
||||||
PULL_REQUEST_TITLE: 'project: Update gradle wrapper'
|
committer: OpenOSRS <openosrs.github@gmail.com>
|
||||||
PULL_REQUEST_BODY: This is an auto-generated PR with an updated gradle version
|
branch: GRADLE-WRAPPER-UPDATE
|
||||||
COMMIT_MESSAGE: 'project: Update gradle wrapper'
|
commit-message: 'gradle: Update gradle wrapper'
|
||||||
PULL_REQUEST_LABELS: automated-pull-request, gradle
|
title: 'gradle: Update gradle wrapper'
|
||||||
|
body: This is an auto-generated PR with an updated gradle version
|
||||||
|
labels: automated-pull-request, gradle
|
||||||
|
signoff: false
|
||||||
|
|
||||||
update-dependencies:
|
update-dependencies:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Update Gradle Dependencies
|
- name: Update Gradle Dependencies
|
||||||
run: ./gradlew useLatestVersions --console=plain
|
run: ./gradlew useLatestVersions --console=plain
|
||||||
- name: Create Gradle dependencies update Pull Request
|
- name: Create Gradle dependencies update Pull Request
|
||||||
uses: Owain94/create-pull-request@master
|
uses: peter-evans/create-pull-request@v3
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.Owain }}
|
token: ${{ secrets.OpenOSRS }}
|
||||||
PULL_REQUEST_BRANCH: GRADLE-DEPS-UPDATE
|
author: OpenOSRS <openosrs.github@gmail.com>
|
||||||
PULL_REQUEST_TITLE: 'project: Update gradle dependencies'
|
committer: OpenOSRS <openosrs.github@gmail.com>
|
||||||
PULL_REQUEST_BODY: This is an auto-generated PR with updated gradle dependencies
|
branch: GRADLE-DEPS-UPDATE
|
||||||
COMMIT_MESSAGE: 'project: Update gradle dependencies'
|
commit-message: 'gradle: Update gradle dependencies'
|
||||||
PULL_REQUEST_LABELS: automated-pull-request, gradle
|
title: 'gradle: Update gradle dependencies'
|
||||||
|
body: This is an auto-generated PR with an updated gradle dependencies
|
||||||
|
labels: automated-pull-request, gradle
|
||||||
|
signoff: false
|
||||||
|
|||||||
4
.github/workflows/merge.yml
vendored
4
.github/workflows/merge.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: automerge
|
- name: automerge
|
||||||
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
if: github.event_name == 'pull_request' && github.actor == 'Owain94'
|
||||||
uses: pascalgn/automerge-action@master
|
uses: pascalgn/automerge-action@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
id: extract_branch
|
id: extract_branch
|
||||||
|
|
||||||
- name: Delete PR head branch
|
- name: Delete PR head branch
|
||||||
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
if: github.event_name == 'pull_request' && github.actor == 'Owain94'
|
||||||
uses: dawidd6/action-delete-branch@master
|
uses: dawidd6/action-delete-branch@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
26
.github/workflows/pr.yml
vendored
26
.github/workflows/pr.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
name: Validate gradle wrapper
|
name: Validate gradle wrapper
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: gradle/wrapper-validation-action@v1.0.3
|
- uses: gradle/wrapper-validation-action@v1.0.3
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@ -29,8 +29,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
@@ -53,8 +53,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
@@ -77,8 +77,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
@@ -101,8 +101,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -111,7 +111,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
|
|||||||
24
.github/workflows/push.yml
vendored
24
.github/workflows/push.yml
vendored
@@ -11,8 +11,8 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
@@ -34,8 +34,8 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
@@ -57,8 +57,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
@@ -80,8 +80,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
|
|||||||
78
.github/workflows/scraper.yml
vendored
78
.github/workflows/scraper.yml
vendored
@@ -9,17 +9,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v2.3.2
|
||||||
with:
|
|
||||||
repository: open-osrs/runelite
|
|
||||||
ref: master
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2.3.1
|
|
||||||
with:
|
with:
|
||||||
repository: open-osrs/cache-client
|
repository: open-osrs/cache-client
|
||||||
ref: master
|
ref: master
|
||||||
|
path: cache-client
|
||||||
|
|
||||||
- uses: actions/cache@v2.0.0
|
- uses: actions/cache@v2.1.1
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
@@ -27,48 +23,58 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@v1.4.2
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
working-directory: /home/runner/work/runelite/runelite
|
working-directory: cache-client
|
||||||
|
|
||||||
- name: Make gradlew executable
|
|
||||||
run: chmod +x ./gradlew
|
|
||||||
working-directory: /home/runner/work/runelite/cache-client
|
|
||||||
|
|
||||||
- name: Assembling cache client
|
- name: Assembling cache client
|
||||||
run: ./gradlew assemble --console=plain
|
run: ./gradlew assemble --console=plain
|
||||||
working-directory: /home/runner/work/runelite/cache-client
|
working-directory: 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
|
|
||||||
|
|
||||||
- name: Downloading jagex cache
|
- name: Downloading jagex cache
|
||||||
run: ./gradlew download --console=plain
|
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
|
- name: Scraping NPC stats
|
||||||
run: ./gradlew :wiki-scraper:npcStatsScrape --console=plain
|
run: ./gradlew :wiki-scraper:npcStatsScrape --console=plain
|
||||||
working-directory: /home/runner/work/runelite/runelite
|
working-directory: OpenOSRS
|
||||||
|
|
||||||
- name: Create NPC stats Pull Request
|
- name: Create NPC stats Pull Request
|
||||||
uses: Owain94/create-pull-request@master
|
uses: peter-evans/create-pull-request@v3
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.OpenOSRS }}
|
token: ${{ secrets.OpenOSRS }}
|
||||||
PULL_REQUEST_BRANCH: NPC-UPDATE
|
path: /home/runner/work/runelite/runelite/OpenOSRS
|
||||||
PULL_REQUEST_TITLE: 'Client: Update NPC stats'
|
author: OpenOSRS <openosrs.github@gmail.com>
|
||||||
PULL_REQUEST_BODY: This is an auto-generated PR with changes from the OSRS wiki
|
committer: OpenOSRS <openosrs.github@gmail.com>
|
||||||
COMMIT_MESSAGE: 'Client: Update NPC stats'
|
branch: NPC-UPDATE
|
||||||
PULL_REQUEST_LABELS: automated-pull-request, NPC stats
|
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
|
||||||
|
|||||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3.0.7
|
- uses: actions/stale@v3.0.10
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'Stale issue message'
|
stale-issue-message: 'Stale issue message'
|
||||||
|
|||||||
Reference in New Issue
Block a user