From 447e2e11e68fd4f37ca232cd567961282c7efe0d Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 17 Apr 2023 09:03:16 -0400 Subject: [PATCH] Add comment when rebase command fails --- .github/workflows/commands.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index a198be0290..55ac9c08bd 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -26,3 +26,10 @@ jobs: uses: cirrus-actions/rebase@b87d48154a87a85666003575337e27b8cd65f691 # 1.8 env: GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }} + - name: Comment on failure + if: failure() + uses: peter-evans/create-or-update-comment@3383acd359705b10cb1eeef05c0e88c056ea4666 # v3.0.0 + with: + token: ${{ secrets.JF_BOT_TOKEN }} + body: | + I'm sorry @${{github.event.comment.user.login}}, I'm afraid I can't do that.