From 7691f4dae19f75b97dab4033a67675b1eb25e79a Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Sun, 30 Jun 2024 16:02:29 +0800 Subject: [PATCH] test jq. --- .gitea/workflows/deploy.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index bb3cfe7..099c7ba 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -13,10 +13,7 @@ jobs: - run: build/Bilby - name: Send success notification if: ${{ always() }} - run: echo build finished. - Notify: - runs-on: [ubuntu-latest, ubuntu-24.04] - container: - image: frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 - steps: - - run: notify wechat. \ No newline at end of file + run: | + echo build finished. + cat resources/notify.tpl | envsubst | jq -sR . + cat resources/notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify \ No newline at end of file