discord-action icon indicating copy to clipboard operation
discord-action copied to clipboard

FYI: Container actions only work on linux

Open rjstone opened this issue 6 years ago • 3 comments

Looks like this doesn't work for windows builds. Might want to add a warning to docs.

rjstone avatar Nov 21 '19 05:11 rjstone

@rjstone Send the PR.

appleboy avatar Mar 26 '20 15:03 appleboy

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!

ldd avatar Nov 20 '20 21:11 ldd

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.

aar0nsky avatar Jun 21 '22 00:06 aar0nsky

I will handle it.

appleboy avatar Sep 24 '23 00:09 appleboy

Only support linux/arm, linux/arm64, linux/amd64 platform.

appleboy avatar Sep 24 '23 00:09 appleboy

fix in d172c11

appleboy avatar Sep 29 '23 01:09 appleboy