From 1ae72c1babd0599ec81274f2afef328741813877 Mon Sep 17 00:00:00 2001 From: Yasin Date: Fri, 1 Sep 2023 08:15:48 +0200 Subject: Update webhook_translate.yml Use basic curl command instead of "Ilshidur/action-discord" action and rename job --- .github/workflows/webhook_translate.yml | 18 +++++++++--------- 1 file 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 " + - 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 }}" -- cgit