mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-01 04:14:28 +08:00
[action] add robot comment when action is fail
This commit is contained in:
@@ -468,3 +468,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
source ~/.env/env.sh
|
source ~/.env/env.sh
|
||||||
python tools/ci/bsp_buildings.py
|
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"
|
||||||
Reference in New Issue
Block a user