mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
CI: Remove discord build status notifications
While these look nice, they require the discord workflow to sit around and wait for the build-and-lint workflow to finish in order to get its status which means we waste an extra workflow runner that does nothing for each build-and-lint run.
This commit is contained in:
parent
01cd474930
commit
7fa5f6be7d
Notes:
sideshowbarker
2024-07-18 12:05:25 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/7fa5f6be7d5 Pull-request: https://github.com/SerenityOS/serenity/pull/8132
21
.github/workflows/discord.yml
vendored
21
.github/workflows/discord.yml
vendored
|
@ -8,30 +8,9 @@ jobs:
|
|||
if: always() && github.repository == 'SerenityOS/serenity' && (github.event_name == 'pull_request_target' || (github.event_name == 'push' && github.ref == 'refs/heads/master'))
|
||||
|
||||
steps:
|
||||
- name: Wait for tests to finish
|
||||
uses: IdanHo/action-wait-for-check@7b2192dd83108237d2f2e6518f6351be333a955c
|
||||
id: wait-for-tests
|
||||
if: ${{ (github.event['pull_request'] && github.event['action'] == 'opened' && !github.event.pull_request.draft) || github.event['commits'] }}
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
excludedCheckName: "notify_discord"
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
timeoutSeconds: 21600
|
||||
intervalSeconds: 100
|
||||
|
||||
- name: Discord action notification
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
CUSTOM_GITHUB_EVENT_NAME: ${{ github.event_name == 'pull_request_target' && 'pull_request' || github.event_name }} # fake the event type as discord doesn't know how to parse the special pull_request_target context
|
||||
uses: IdanHo/action-discord@754598254f288e6d8e9fca637832e3c163515ba8
|
||||
if: ${{ (github.event['pull_request'] && github.event['action'] == 'opened' && !github.event.pull_request.draft) || github.event['commits'] }}
|
||||
|
||||
- name: Discord build status
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
DISCORD_USERNAME: GitHub # we have to set these manually for non-default messages
|
||||
DISCORD_AVATAR: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
|
||||
uses: IdanHo/action-discord@754598254f288e6d8e9fca637832e3c163515ba8
|
||||
if: ${{ (github.event['pull_request'] && github.event['action'] == 'opened' && !github.event.pull_request.draft) || github.event['commits'] }}
|
||||
with:
|
||||
args: "The build ${{ steps.wait-for-tests.outputs.conclusion == 'success' && 'passed :white_check_mark:' || 'failed :x:' }}"
|
||||
|
|
Loading…
Reference in a new issue