mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
Add Mods Checker on Issue Comment (#905)
* Add Mods Checker * Also on issue comment
This commit is contained in:
parent
bd68aa7ec5
commit
af3bcbe714
7
.github/workflows/check-new-mod.yml
vendored
7
.github/workflows/check-new-mod.yml
vendored
@ -2,8 +2,10 @@ name: Check New Mod
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, edited]
|
||||
types: [opened, synchronize]
|
||||
branches: [master, source, main]
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@ -16,7 +18,7 @@ jobs:
|
||||
env:
|
||||
modUniqueName: ""
|
||||
modRepo: ""
|
||||
if: "${{ contains(github.event.pull_request.labels.*.name, 'add-mod') && startsWith(github.event.pull_request.title, 'Add new mod: ') }}"
|
||||
if: "${{ (github.event.comment && github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'add-mod') && startsWith(github.event.pull_request.title, 'Add new mod: ') && startsWith(github.event.comment.body, 'checker, retry')) || (github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'add-mod') && startsWith(github.event.pull_request.title, 'Add new mod: ')) }}"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -47,6 +49,7 @@ jobs:
|
||||
overrideName: Check of ${{ env.modUniqueName }}
|
||||
expectedUniqueName: ${{ env.modUniqueName }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: echo -e "\nTo re-run the check, comment 'checker, retry' on this PR." >> ./results.md
|
||||
- name: Final Comment
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user