Skip to content

Commit

Permalink
Update test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Messi authored Jun 19, 2024
1 parent 821f41a commit c031f6c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Pages
name: CI

on:
workflow_dispatch:
push:
branches:
- main # default branch
on: [push]

jobs:
pages:
build:
runs-on: ubuntu-latest
steps:
- run: |
curl -X "POST" "https://api.day.app/a8BiVYYGe7sMfKWLBNNcCj" \
- 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 }}",
Expand All @@ -22,4 +25,3 @@ jobs:
"icon": "https://cdn-icons-png.flaticon.com/512/25/25231.png",
"group": "Github Actions",
}'

0 comments on commit c031f6c

Please sign in to comment.