1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00
Slimefun4/.github/workflows/invalid_pull_requests.yml
2020-03-21 20:03:26 +01:00

29 lines
975 B
YAML

name: Comment on invalid Pull Requests
on:
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- master
paths:
- 'src/main/resources/languages/**.yml'
jobs:
pulls:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.head.ref, 'gitlocalize-') == false
steps:
- uses: maxkomarychev/octions/octions/issues/create-comment@master
with:
token: ${{ secrets.ACCESS_TOKEN }}
issue_number: ${{ github.event.pull_request.number }}
body: |-
:warning: Hey, it looks you edited a language file.
We use [gitlocalize](https://gitlocalize.com/repo/3841) for handling localization, please don't submit any localization files
via GitHub. That is sadly not possible.
You can read more about how to translate Slimefun into your language [on our wiki page](https://github.com/TheBusyBiscuit/Slimefun4/wiki/Translating-Slimefun).