From d734ef2a68fb3940c19d7cf62d04bc7a2a8e1952 Mon Sep 17 00:00:00 2001 From: "sdkman-chloe[bot]" <263185818+sdkman-chloe[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 11:31:52 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20notify=20Chlo=C3=A9=20on=20release=20b?= =?UTF-8?q?uild=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33b7ee1f..13859608 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,3 +47,24 @@ jobs: run: bin/release-binary.sh "$MONGO_URL" "$MONGO_USERNAME" "$MONGO_PASSWORD" "$RELEASE_TAG" "stable" - name: Tweet about it run: ./gradlew -Penv=stable -Prelease=${{ github.event.inputs.version }} jreleaserAnnounce + + notify-failure: + name: "Notify on Failure" + runs-on: ubuntu-latest + needs: [build] + if: failure() + steps: + - name: Notify Chloé + env: + REPO: ${{ github.repository }} + RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + run: | + MSG="❌ Release build failed: ${REPO}" + MSG+=$'\nRun: '"${RUN_URL}" + PAYLOAD=$(jq -n --arg msg "$MSG" --arg name "GitHub CI" \ + '{message: $msg, name: $name, deliver: true, channel: "discord", to: "user:918237603617206303"}') + curl -sf -X POST \ + -H "Authorization: Bearer ${{ secrets.OPENCLAW_HOOK_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d "$PAYLOAD" \ + "${{ secrets.OPENCLAW_HOOK_URL }}"