Fix trailing slash issue on mod checker

This commit is contained in:
Ben C 2024-08-14 07:37:34 -04:00 committed by GitHub
parent 4c8694e168
commit 7ba83d9722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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