aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2023-09-03 16:21:12 -0400
committerKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2023-09-03 16:21:12 -0400
commit210891749f4a15c948a6c9e889dae1898807e951 (patch)
tree064e8d49a0c8ed882ad7845d16fd44af60bdd0e4 /.github
parentaa2abcf644bf58adb3330e87d870ce56a09ce3f5 (diff)
parent6e5a77698ebfd189daa46f45523d8286450999ae (diff)
downloadSkyblocker-210891749f4a15c948a6c9e889dae1898807e951.tar.gz
Skyblocker-210891749f4a15c948a6c9e889dae1898807e951.tar.bz2
Skyblocker-210891749f4a15c948a6c9e889dae1898807e951.zip
Merge branch 'master' into utils-cleanup
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/webhook_translate.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/webhook_translate.yml b/.github/workflows/webhook_translate.yml
new file mode 100644
index 00000000..6d072634
--- /dev/null
+++ b/.github/workflows/webhook_translate.yml
@@ -0,0 +1,22 @@
+name: translate update
+
+on:
+ push:
+ branches:
+ - master
+ paths:
+ - src/main/resources/assets/skyblocker/lang/en_us.json
+
+jobs:
+ webhook:
+ if: github.repository_owner == 'SkyblockerMod'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Translate notification
+ shell: bash
+ run: |
+ OUTPUT="
+ <@&1134566053138145330>
+ New Strings available at https://translate.hysky.de/projects/Skyblocker/skyblocker"
+
+ curl -H "Content-Type: application/json" -d '{"content":"'"${OUTPUT//$'\n'/\\n}"'", "flags": 4}' "${{ secrets.DISCORD_TRANSLATE_WEBHOOK }}"