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 19de5cc commit d1273f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v2

- name: Set DATE environment variable
run: echo "DATE=$(date '+%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
run: echo "DATE=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV

# 其他步骤...

Expand All @@ -30,14 +30,14 @@ jobs:
- name: Notify job status
if: always() # 确保这一步始终运行,不管之前的步骤是否成功
run: |
curl -X "POST" "https://api.day.app/a8BiVYYGe7sMfKWLBNNcCj" \
curl -X "POST" "${{ secrets.BARK_KEY }}" \
-H 'Content-Type: application/json; charset=utf-8' \
-d '{
"body": "Github Actions于${{ env.DATE }}运行${{ env.translated_status }}",
"title": "'${{ github.repository }}'",
"badge": 1,
"category": "Github Actions",
"sound": "multiwayinvitation.caf",
"icon": "https://cdn-icons-png.flaticon.com/512/25/25231.png",
"icon": "https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png",
"group": "Github Actions"
}'

0 comments on commit d1273f7

Please sign in to comment.