diff --git a/.github/workflows/discord-notify-selfhosted-windows-powershell.yml b/.github/workflows/discord-notify-selfhosted-windows-powershell.yml index 4656bf5..eb0664e 100644 --- a/.github/workflows/discord-notify-selfhosted-windows-powershell.yml +++ b/.github/workflows/discord-notify-selfhosted-windows-powershell.yml @@ -29,11 +29,9 @@ jobs: - name: command001 run: | .\command001.ps1 - - name: command002 - run: | - .\command002.ps1 - name: Notify Discord # cmd.exe /c 'curl -H "Content-Type: application/json" -X POST -d "{\"username\": \"ここに名前を入れる\", \"content\": \"メッセージを送る!\"}" https://discord.com/api/webhooks/1294410759958298665/NsinS1PTNjGS8J8GFl_m37V36xB-1GzZNSfnoaTEF_LnwnUIqWqoMcWA_Gv3L15iFcxL' # Invoke-WebRequest -Headers @{"Content-Type"="application/json"} -Method Post -Body "{`"username`": `"namename`", `"content`": `"messagemessage`"}" https://discord.com/api/webhooks/1294410759958298665/NsinS1PTNjGS8J8GFl_m37V36xB-1GzZNSfnoaTEF_LnwnUIqWqoMcWA_Gv3L15iFcxL + # Invoke-WebRequest -Headers @{"Content-Type"="application/json"} -Method Post -Body "{`"username`": `"name`", `"content`": `"message`"}" ${{ secrets.DISCORD_WEBHOOK_URL }} run: | - Invoke-WebRequest -Headers @{"Content-Type"="application/json"} -Method Post -Body "{`"username`": `"name`", `"content`": `"message`"}" ${{ secrets.DISCORD_WEBHOOK_URL }} + .\command002.ps1 ${{ secrets.DISCORD_WEBHOOK_URL }}