Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Sep 8, 2024
1 parent 4c30e90 commit 47945da
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 10 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ jobs:
permissions: {}
runs-on: "ubuntu-latest"
steps:
- shell: "pwsh"
run: |-
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "Hello, text channel!"
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "Hello, thread 0!"
thread_id: "1281905279075876887"
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_FORUM}}"
content: "Hello, forum thread!"
thread_name: "Test"
thread_tags: |-
1281904394861936640
1281904417821425735
1281904437387989123
1281995616490094684
1281995653186195497
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
Expand Down Expand Up @@ -49,15 +66,24 @@ jobs:
"value": "You're welcome :wink:"
}
],
"thumbnail": {
"url": "https://i.imgur.com/R66g1Pe.jpg"
},
"image": {
"url": "attachment://thumbnail.png"
"url": "https://i.imgur.com/R66g1Pe.jpg"
},
"footer": {
"text": "Woah! So cool! :smirk:",
"icon_url": "https://i.imgur.com/fKL31aD.jpg"
}
}
]
- shell: "pwsh"
run: |-
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
- uses: "hugoalh/send-discord-webhook-ghaction/_build@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "This is the Discord logo."
files: |-
thumbnail.png
files_glob: "false"
36 changes: 31 additions & 5 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ jobs:
permissions: {}
runs-on: "ubuntu-latest"
steps:
- shell: "pwsh"
run: |-
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "Hello, text channel!"
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "Hello, thread 0!"
thread_id: "1281905279075876887"
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_FORUM}}"
content: "Hello, forum thread!"
thread_name: "Test"
thread_tags: |-
1281904394861936640
1281904417821425735
1281904437387989123
1281995616490094684
1281995653186195497
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
Expand Down Expand Up @@ -49,15 +66,24 @@ jobs:
"value": "You're welcome :wink:"
}
],
"thumbnail": {
"url": "https://i.imgur.com/R66g1Pe.jpg"
},
"image": {
"url": "attachment://thumbnail.png"
"url": "https://i.imgur.com/R66g1Pe.jpg"
},
"footer": {
"text": "Woah! So cool! :smirk:",
"icon_url": "https://i.imgur.com/fKL31aD.jpg"
}
}
]
- shell: "pwsh"
run: |-
Invoke-WebRequest -Uri 'https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0b52aa9e99b832574a53_full_logo_blurple_RGB.png' -MaximumRedirection 1 -MaximumRetryCount 5 -RetryIntervalSec 5 -Method 'Get' -OutFile 'thumbnail.png'
- uses: "hugoalh/send-discord-webhook-ghaction@main"
with:
key: "${{secrets.DISCORD_TEST_WEBHOOK_TEXT}}"
content: "This is the Discord logo."
files: |-
thumbnail.png
files_glob: "false"

0 comments on commit 47945da

Please sign in to comment.