Update CI script

This commit is contained in:
Joshua Granick
2021-01-06 11:17:30 -08:00
parent d3403b95c2
commit 3f95115fab

View File

@@ -531,7 +531,7 @@ jobs:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#00C07F"
message: "<a href="https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}">CI build succeeded.</a>"
message: "https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}\nCI build succeeded."
- name: Notify Discord (failure)
uses: appleboy/discord-action@master
@@ -546,20 +546,24 @@ jobs:
if: always()
steps:
- name: Notify Discord (success)
- name: Notify Discord
uses: appleboy/discord-action@master
if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#00C07F"
message: "<a href="https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}">CI build succeeded.</a>"
message: "<a href='https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}''>CI build message test</a>"
- name: Notify Discord (failure)
test-notify-discord2:
if: always()
steps:
- name: Notify Discord
uses: appleboy/discord-action@master
if: failure() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#FF6562"
message: "https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}\nCI build failed."
color: "#00C07F"
message: "[https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}](CI build message test)"