From 3baffa7296dcb1d9146b6a7f8ff5e514ee9f11b2 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 7 Aug 2024 23:43:29 -0300 Subject: [PATCH] ci: notify nightly builds on discord Signed-off-by: Carlos Alexandro Becker --- .github/workflows/nightly-oss.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/nightly-oss.yml b/.github/workflows/nightly-oss.yml index 9a0230ee4..4ee50b543 100644 --- a/.github/workflows/nightly-oss.yml +++ b/.github/workflows/nightly-oss.yml @@ -60,3 +60,19 @@ jobs: MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }} MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }} MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }} + notify: + runs-on: ubuntu-latest + needs: + - goreleaser + if: ${{ always() }} + steps: + - name: Notify + uses: nobrayner/discord-webhook@v1 + with: + github-token: ${{ secrets.github_token }} + title: "nightly" + description: "build finished with status {{STATUS}}" + discord-webhook: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }} + username: GoReleaser + avatar-url: https://avatars.githubusercontent.com/u/24697112?v=4 + include-details: false