aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/webhook_translate.yml
diff options
context:
space:
mode:
authorYasin <LifeIsAParadox@users.noreply.github.com>2023-09-01 08:15:48 +0200
committerGitHub <noreply@github.com>2023-09-01 08:15:48 +0200
commit1ae72c1babd0599ec81274f2afef328741813877 (patch)
treee31007f218f37ae8f80dfc3db1b7e89190c6ac7f /.github/workflows/webhook_translate.yml
parentf58f240e62e3d267a2b8a377f4f8f314f4ce08d0 (diff)
downloadSkyblocker-1ae72c1babd0599ec81274f2afef328741813877.tar.gz
Skyblocker-1ae72c1babd0599ec81274f2afef328741813877.tar.bz2
Skyblocker-1ae72c1babd0599ec81274f2afef328741813877.zip
Update webhook_translate.yml
Use basic curl command instead of "Ilshidur/action-discord" action and rename job
Diffstat (limited to '.github/workflows/webhook_translate.yml')
-rw-r--r--.github/workflows/webhook_translate.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/webhook_translate.yml b/.github/workflows/webhook_translate.yml
index af968db2..5bf790c7 100644
--- a/.github/workflows/webhook_translate.yml
+++ b/.github/workflows/webhook_translate.yml
@@ -8,14 +8,14 @@ on:
- src/main/resources/assets/skyblocker/lang/en_us.json
jobs:
- your_job_name:
+ webhook:
runs-on: ubuntu-latest
steps:
- - name: Discord notification
- env:
- DISCORD_WEBHOOK: ${{ secrets.DISCORD_TRANSLATE_WEBHOOK }}
- uses: Ilshidur/action-discord@master
- with:
- args: |
- "<@&1134566053138145330>"
- "New Strings available at <https://translate.hysky.de/projects/Skyblocker/skyblocker/>"
+ - 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 }}"