Update test.yaml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# 其他步骤... | |
- name: Notify job status | |
if: always() # 确保这一步始终运行,不管之前的步骤是否成功 | |
run: | | |
curl -X "POST" "https://api.day.app/a8BiVYYGe7sMfKWLBNNcCj" \ | |
-H 'Content-Type: application/json; charset=utf-8' \ | |
-d $'{ | |
"body": "${{ job.status }}", | |
"title": "${{ github.repository }}", | |
"badge": 1, | |
"category": "Github Actions", | |
"sound": "minuet.caf", | |
"icon": "https://cdn-icons-png.flaticon.com/512/25/25231.png", | |
"group": "Github Actions", | |
}' |