Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Nov 6, 2024
1 parent b05d575 commit 7b428db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
docker image ls --all --digests --no-trunc
- uses: "hugoalh/send-discord-webhook-ghaction/_build@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
key: "${{secrets.TEST_TEXT_WEBHOOK}}"
content: "Hello, text channel!"
- uses: "hugoalh/send-discord-webhook-ghaction/_build@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
key: "${{secrets.TEST_TEXT_WEBHOOK}}"
poll_allow_multiselect: "true"
poll_answers: |-
- emoji:
Expand All @@ -31,12 +31,12 @@ jobs:
poll_question: "Who?"
- uses: "hugoalh/send-discord-webhook-ghaction/_build@dev"
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@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_FORUM}}"
key: "${{secrets.TEST_FORUM_WEBHOOK}}"
content: "Hello, forum thread!"
thread_name: "Test"
thread_tags: |-
Expand All @@ -47,7 +47,7 @@ jobs:
1281995653186195497
- uses: "hugoalh/send-discord-webhook-ghaction/_build@dev"
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"
Expand Down Expand Up @@ -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@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
key: "${{secrets.TEST_TEXT_WEBHOOK}}"
content: "This is the Discord logo."
files: |-
thumbnail.png
12 changes: 6 additions & 6 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
docker image ls --all --digests --no-trunc
- uses: "hugoalh/send-discord-webhook-ghaction@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
key: "${{secrets.TEST_TEXT_WEBHOOK}}"
content: "Hello, text channel!"
- uses: "hugoalh/send-discord-webhook-ghaction@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
key: "${{secrets.TEST_TEXT_WEBHOOK}}"
poll_allow_multiselect: "true"
poll_answers: |-
- emoji:
Expand All @@ -31,12 +31,12 @@ jobs:
poll_question: "Who?"
- uses: "hugoalh/send-discord-webhook-ghaction@dev"
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@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_FORUM}}"
key: "${{secrets.TEST_FORUM_WEBHOOK}}"
content: "Hello, forum thread!"
thread_name: "Test"
thread_tags: |-
Expand All @@ -47,7 +47,7 @@ jobs:
1281995653186195497
- uses: "hugoalh/send-discord-webhook-ghaction@dev"
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"
Expand Down Expand Up @@ -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@dev"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
key: "${{secrets.TEST_TEXT_WEBHOOK}}"
content: "This is the Discord logo."
files: |-
thumbnail.png

0 comments on commit 7b428db

Please sign in to comment.