From 6f72b42954249103649c9c64aaebcd6be62b8b91 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Sat, 29 May 2021 19:48:46 -0400 Subject: [PATCH] Update build.yml Enable discord notification upon build --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a675f4..1bf826a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,15 +133,15 @@ jobs: SavvyCAN_CIBuild.zip SavvyCAN-macOS_x64.dmg/SavvyCAN.dmg - #notify: - # name: Notify Discord - # needs: [buildwindows, buildmacos, buildlinux] - # runs-on: ubuntu-latest - # steps: - # - name: Notify Discord - # run: | - # curl -i -H "Accept: application/json" \ - # -H "Content-Type:application/json" \ - # -X POST \ - # --data "{\"content\": null,\"embeds\": [{\"title\": \"${{ github.repository }} Build Complete\", \"description\": \"Commit: ${{ github.sha }}\\n[Build Artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)\", \"color\": 5131997, \"author\": { \"name\": \"Github Builds\" } } ]}" \ - # https://discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }} + notify: + name: Notify Discord + needs: [buildwindows, buildmacos, buildlinux] + runs-on: ubuntu-latest + steps: + - name: Notify Discord + run: | + curl -i -H "Accept: application/json" \ + -H "Content-Type:application/json" \ + -X POST \ + --data "{\"content\": null,\"embeds\": [{\"title\": \"${{ github.repository }} Build Complete\", \"description\": \"Commit: ${{ github.sha }}\\n[Build Artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)\", \"color\": 5131997, \"author\": { \"name\": \"Github Builds\" } } ]}" \ + https://discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }}