summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2024-08-12 01:26:37 +0000
committerRbb666 <[email protected]>2024-08-12 11:38:50 +0800
commitc468d1227cd8eba71582419e01e15385f2565b67 (patch)
tree615a40c75928766934775803f5399d66a1247a69
parent24b0a8174fd4ba1fbbc2510023e3fbc02ecf8de6 (diff)
[action] add robot comment when action is fail
-rw-r--r--.github/workflows/bsp_buildings.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/bsp_buildings.yml b/.github/workflows/bsp_buildings.yml
index a61d086df7..1c02fd6fd2 100644
--- a/.github/workflows/bsp_buildings.yml
+++ b/.github/workflows/bsp_buildings.yml
@@ -468,3 +468,10 @@ jobs:
run: |
source ~/.env/env.sh
python tools/ci/bsp_buildings.py
+
+ - name: Post failure comment
+ if: failure()
+ run: |
+ curl -X POST -H "Authorization: token ${{ secrets.RTTHREAD_GITHUB_TOKEN }}" \
+ -d '{"body":"@${{ github.actor }}, Thank you for your contribution, but there was an error with the action. Could you please help check the BSP compilation issue? Thank you."}' \
+ "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" \ No newline at end of file