improve action discord logging
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m44s
/ Build BaseBand Installer (push) Successful in 1m3s
/ Build BaseBand Loader (push) Successful in 1m36s
/ Build BaseBand Server (push) Successful in 1m42s

This commit is contained in:
Daniella / Tove 2024-06-12 12:00:55 +02:00
parent 9198ba98cc
commit 0c39615700
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
5 changed files with 11 additions and 7 deletions

View file

@ -21,7 +21,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Notify Action Start
run: bash scripts/webhook.sh "**(Client)** Build Action Started at"
run: bash scripts/webhook.sh "**(Client)** Build Action Started"
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
@ -57,5 +57,6 @@ jobs:
BB_PATH: ${{ vars.BB_PATH }}
run: bash scripts/push_file.sh Client/build/proguard/BaseBand-Broadway.jar 3849
- name: Notify Action Completion
run: bash scripts/webhook.sh "**(Client)** Build Action Completed at"
if: always()
run: bash scripts/webhook.sh "**(Client)** Build Action Completed"

View file

@ -21,7 +21,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Notify Action Start
run: bash scripts/webhook.sh "**(Installer)** Build Action Started at"
run: bash scripts/webhook.sh "**(Installer)** Build Action Started"
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
@ -35,4 +35,5 @@ jobs:
name: BaseBand-Installer.jar
path: Installer/build/libs/BaseBand-Installer.jar
- name: Notify Action Completion
run: bash scripts/webhook.sh "**(Installer)** Build Action Completed at"
if: always()
run: bash scripts/webhook.sh "**(Installer)** Build Action Completed"

View file

@ -44,4 +44,5 @@ jobs:
BB_PATH: ${{ vars.BB_PATH }}
run: bash scripts/push_file.sh Loader/build/proguard/BaseBand-Loader.jar 3848
- name: Notify Action Completion
run: bash scripts/webhook.sh "**(Loader)** Build Action Completed at"
if: always()
run: bash scripts/webhook.sh "**(Loader)** Build Action Completed"

View file

@ -51,4 +51,5 @@ jobs:
bash scripts/push_file.sh Server/build/libs/BaseBand-Server.jar
bash scripts/push_file.sh Discord/build/libs/BaseBand-Discord.jar
- name: Notify Action Completion
run: bash scripts/webhook.sh "**(Server)** Build Action Completed at"
if: always()
run: bash scripts/webhook.sh "**(Server)** Build Action Completed"

View file

@ -1 +1 @@
curl -i -s -o /dev/null -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$* $(date)\"}" https://discord.com/api/webhooks/1250323633205940244/yu1v_moeBxWi4YWaRK_s4tNAXUGUJml-E2PbhToccVFo1Ax2_6Iq6R6lEONCKikHBBn4
curl -i -s -o /dev/null -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$* on $(basename "$(git describe --always --all)") at $(date)\"}" https://discord.com/api/webhooks/1250323633205940244/yu1v_moeBxWi4YWaRK_s4tNAXUGUJml-E2PbhToccVFo1Ax2_6Iq6R6lEONCKikHBBn4