From ea22a81202c099f1d6ebda6c5a5e1dec00221849 Mon Sep 17 00:00:00 2001 From: hugoalh Date: Wed, 6 Nov 2024 17:21:37 +0800 Subject: [PATCH] Update workflow (cherry picked from commit 7b428db304b05ace70a435cc3df1d42c5153fcf5) --- .github/workflows/test-build.yml | 12 ++++++------ .github/workflows/test-package.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 8ffc3fee..975b5b76 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -12,11 +12,11 @@ jobs: docker image ls --all --digests --no-trunc - uses: "hugoalh/send-discord-webhook-ghaction/_build@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "Hello, text channel!" - uses: "hugoalh/send-discord-webhook-ghaction/_build@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" poll_allow_multiselect: "true" poll_answers: |- - emoji: @@ -31,12 +31,12 @@ jobs: poll_question: "Who?" - uses: "hugoalh/send-discord-webhook-ghaction/_build@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "Hello, thread 0!" thread_id: "1281905279075876887" - uses: "hugoalh/send-discord-webhook-ghaction/_build@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_FORUM}}" + key: "${{secrets.TEST_FORUM_WEBHOOK}}" content: "Hello, forum thread!" thread_name: "Test" thread_tags: |- @@ -47,7 +47,7 @@ jobs: 1281995653186195497 - uses: "hugoalh/send-discord-webhook-ghaction/_build@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "Text message. Up to 2000 characters." username: "Webhook" avatar_url: "https://i.imgur.com/4M34hi2.png" @@ -100,7 +100,7 @@ jobs: Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png' - uses: "hugoalh/send-discord-webhook-ghaction/_build@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "This is the Discord logo." files: |- thumbnail.png diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index c6a72ed1..13700226 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -12,11 +12,11 @@ jobs: docker image ls --all --digests --no-trunc - uses: "hugoalh/send-discord-webhook-ghaction@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "Hello, text channel!" - uses: "hugoalh/send-discord-webhook-ghaction@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" poll_allow_multiselect: "true" poll_answers: |- - emoji: @@ -31,12 +31,12 @@ jobs: poll_question: "Who?" - uses: "hugoalh/send-discord-webhook-ghaction@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "Hello, thread 0!" thread_id: "1281905279075876887" - uses: "hugoalh/send-discord-webhook-ghaction@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_FORUM}}" + key: "${{secrets.TEST_FORUM_WEBHOOK}}" content: "Hello, forum thread!" thread_name: "Test" thread_tags: |- @@ -47,7 +47,7 @@ jobs: 1281995653186195497 - uses: "hugoalh/send-discord-webhook-ghaction@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "Text message. Up to 2000 characters." username: "Webhook" avatar_url: "https://i.imgur.com/4M34hi2.png" @@ -100,7 +100,7 @@ jobs: Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png' - uses: "hugoalh/send-discord-webhook-ghaction@main" with: - key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}" + key: "${{secrets.TEST_TEXT_WEBHOOK}}" content: "This is the Discord logo." files: |- thumbnail.png