1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
Slimefun4/.github/workflows/translator-webhook.yml
TheBusyBiscuit f0730237e2 [CI skip] Configured remaining workflow permissions
Hopefully I did this right? 👀
2022-07-12 15:05:15 +02:00

27 lines
626 B
YAML

name: Translation Notifier
on:
push:
branches:
- master
paths:
- 'src/main/resources/languages/en/**.yml'
permissions:
contents: read
jobs:
notify:
name: Translation-Notifier
runs-on: ubuntu-latest
if: github.repository == 'Slimefun/Slimefun4'
steps:
- name: Discord Notification
uses: Ilshidur/action-discord@master
with:
args: '<@&665202905271369776> New strings have been added to Slimefun4''s language files. You can translate them at https://crowdin.com/project/slimefun'
env:
DISCORD_WEBHOOK: ${{ secrets.TRANSLATOR_WEBHOOK }}