actions: Fix
This commit is contained in:
43
.github/workflows/pr.yml
vendored
43
.github/workflows/pr.yml
vendored
@@ -1,11 +1,19 @@
|
|||||||
name: OpenOSRS - CI (push)
|
name: OpenOSRS - CI (PR)
|
||||||
|
|
||||||
on:
|
on: pull_request
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pr-lint:
|
||||||
|
name: PR title
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: PR title lint
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
uses: seferov/pr-lint-action@master
|
||||||
|
with:
|
||||||
|
title-regex: '^([\w-/]+): \w+'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build
|
name: Build
|
||||||
@@ -55,4 +63,27 @@ jobs:
|
|||||||
- name: Assembling
|
- name: Assembling
|
||||||
run: ./gradlew assemble --console=plain
|
run: ./gradlew assemble --console=plain
|
||||||
- name: Checking code conventions
|
- name: Checking code conventions
|
||||||
run: ./gradlew checkstyleMain --console=plain
|
run: ./gradlew checkstyleMain --console=plain
|
||||||
|
|
||||||
|
approve:
|
||||||
|
name: Approve
|
||||||
|
needs: [build, test, checkstyle]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Approve pull request
|
||||||
|
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
||||||
|
uses: hmarr/auto-approve-action@v2.0.0
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
merge:
|
||||||
|
name: Merge
|
||||||
|
needs: approve
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: maxkomarychev/merge-pal-action@v0.1.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -1,19 +1,11 @@
|
|||||||
name: OpenOSRS - CI (PR)
|
name: OpenOSRS - CI (push)
|
||||||
|
|
||||||
on: pull_request
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr-lint:
|
|
||||||
name: PR title
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: PR title lint
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
uses: seferov/pr-lint-action@master
|
|
||||||
with:
|
|
||||||
title-regex: '^([\w-/]+): \w+'
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build
|
name: Build
|
||||||
@@ -63,28 +55,4 @@ jobs:
|
|||||||
- name: Assembling
|
- name: Assembling
|
||||||
run: ./gradlew assemble --console=plain
|
run: ./gradlew assemble --console=plain
|
||||||
- name: Checking code conventions
|
- name: Checking code conventions
|
||||||
run: ./gradlew checkstyleMain --console=plain
|
run: ./gradlew checkstyleMain --console=plain
|
||||||
|
|
||||||
approve:
|
|
||||||
name: Approve
|
|
||||||
needs: [build, test, checkstyle]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Approve pull request
|
|
||||||
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
|
||||||
uses: hmarr/auto-approve-action@v2.0.0
|
|
||||||
with:
|
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
automerge:
|
|
||||||
name: Automerge
|
|
||||||
needs: approve
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: automerge
|
|
||||||
uses: pascalgn/automerge-action@f84dd310ea4a19890c70a4ff11ab282a872fb94b
|
|
||||||
env:
|
|
||||||
AUTOMERGE: "automated pull request"
|
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
2
.github/workflows/scraper.yml
vendored
2
.github/workflows/scraper.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- name: Building scraper
|
- name: Building scraper
|
||||||
run: ./gradlew :wiki-scraper:build --console=plain
|
run: ./gradlew :wiki-scraper:build --console=plain
|
||||||
- name: Downloading jagex cache
|
- name: Downloading jagex cache
|
||||||
run: ./gradlew :cache-client:update --console=plain
|
run: ./gradlew :cache-client:download --console=plain
|
||||||
- name: Scraping NPC stats
|
- name: Scraping NPC stats
|
||||||
run: ./gradlew :wiki-scraper:npcStatsScrape --console=plain
|
run: ./gradlew :wiki-scraper:npcStatsScrape --console=plain
|
||||||
- name: Create NPC stats Pull Request
|
- name: Create NPC stats Pull Request
|
||||||
|
|||||||
Reference in New Issue
Block a user