discord-action
discord-action copied to clipboard
FYI: Container actions only work on linux
Looks like this doesn't work for windows builds. Might want to add a warning to docs.
@rjstone Send the PR.
I'm commenting here because someone surely, someday, will come back again and wonder how to do it on windows.
- name: notify
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
$MESSAGE=@"
{\"content\": \"Cool message"}
"@
C:\msys64\usr\bin\curl.exe -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST $env:DISCORD_WEBHOOK --data $MESSAGE
There you go, no dependencies needed, not even this action. just a simple curl request Have fun!
I am confused, I dont think this solution fits using this github action... Simple curl request doesnt fix the issue of integrating with a github action.
I will handle it.
Only support linux/arm, linux/arm64, linux/amd64 platform.
fix in d172c11