aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/webhook_translate.yml
blob: 6d0726345a94303e10d785a9f70d6024e24fde2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 }}"