mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
Fix trailing slash issue on mod checker
This commit is contained in:
parent
4c8694e168
commit
7ba83d9722
4
.github/workflows/check-new-mod.yml
vendored
4
.github/workflows/check-new-mod.yml
vendored
@ -28,10 +28,10 @@ jobs:
|
||||
tmp="${{ github.event.pull_request.title && github.event.pull_request.title || github.event.issue.title }}"
|
||||
echo "modUniqueName=${tmp:13}" >> $GITHUB_ENV
|
||||
|
||||
pat="https://github.com/(.*)"
|
||||
pat="https://github.com/(.*)/?"
|
||||
ser="${{ github.event.pull_request.body && github.event.pull_request.body || github.event.issue.body }}"
|
||||
if [[ $ser =~ $pat ]]; then
|
||||
echo "modRepo=${BASH_REMATCH[1]}" >> $GITHUB_ENV
|
||||
echo "modRepo=${BASH_REMATCH[1]%/}" >> $GITHUB_ENV
|
||||
fi
|
||||
- name: Initial Comment
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user