Discord notify on Linux only
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -187,18 +187,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Notify Discord (success)
|
- name: Notify Discord (success)
|
||||||
uses: appleboy/discord-action@master
|
uses: appleboy/discord-action@master
|
||||||
if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }} && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||||
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||||
color: "#00C07F"
|
color: "#00C07F"
|
||||||
message: "https://github.com/haxelime/lime/actions\nCI build succeeded."
|
message: "https://github.com/haxelime/lime/actions\nCI build succeeded (Linux)."
|
||||||
|
|
||||||
- name: Notify Discord (failure)
|
- name: Notify Discord (failure)
|
||||||
uses: appleboy/discord-action@master
|
uses: appleboy/discord-action@master
|
||||||
if: failure() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }} && failure() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||||
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||||
color: "#FF6562"
|
color: "#FF6562"
|
||||||
message: "https://github.com/haxelime/lime/actions\nCI build failed."
|
message: "https://github.com/haxelime/lime/actions\nCI build failed (Linux)."
|
||||||
|
|||||||
Reference in New Issue
Block a user