air101ci_notify.yml 952 B

1234567891011121314151617181920212223242526272829
  1. name: air101ci_notify
  2. on:
  3. workflow_dispatch:
  4. repository_dispatch:
  5. types:
  6. - webhook_air101ci_notify
  7. jobs:
  8. build:
  9. runs-on: ubuntu-20.04
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: report if failure
  13. if: always()
  14. env:
  15. STATUS: ${{ job.status }}
  16. MQTTADDR: ${{ secrets.MQTTADDR }}
  17. MQTTPORT: ${{ secrets.MQTTPORT }}
  18. MQTTTOPIC: ${{ secrets.MQTTTOPIC }}
  19. DD_APPKEY: ${{ secrets.DD_APPKEY }}
  20. DD_APPSECRET: ${{ secrets.DD_APPSECRET }}
  21. DD_NOTIFY_LIST: ${{ secrets.DD_NOTIFY_LIST }}
  22. DD_API_TOKEN: ${{ secrets.DD_API_TOKEN }}
  23. DD_API_SEND: ${{ secrets.DD_API_SEND }}
  24. run: |
  25. sudo pip3 install paho_mqtt gitpython requests
  26. cd tools
  27. python3 ciNotify.py $MQTTADDR $MQTTPORT $MQTTTOPIC "http://luat.papapoi.com:23380/openLuat/LuatOS" "实物测试" "$DD_APPKEY" "$DD_APPSECRET" "$DD_NOTIFY_LIST" "$DD_API_TOKEN" "$DD_API_SEND"