diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e956c97..77e06e1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 # 其他步骤... @@ -30,7 +30,7 @@ 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 }}", @@ -38,6 +38,6 @@ jobs: "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" }'