test env.
Some checks failed
Deploy Applications / Build (push) Failing after 5s

This commit is contained in:
amass 2024-06-30 17:56:07 +08:00
parent 706f23e5d9
commit 3f90f1b698

View File

@ -14,10 +14,10 @@ jobs:
- name: Send success notification - name: Send success notification
if: ${{ always() }} if: ${{ always() }}
run: | run: |
echo "repo: ${{ github.repository }}"> notify.tpl echo "repo: ${{ github.repository }}">> notify.tpl
echo "status: ${{ job.status }}"> notify.tpl echo "status: ${{ job.status }}">> notify.tpl
echo "commit: ${{ github.sha }}"> notify.tpl echo "commit: ${{ github.sha }}">> notify.tpl
echo "message: ${{ github.event.head_commit.message }}"> notify.tpl echo "message: ${{ github.event.head_commit.message }}">> notify.tpl
echo "repo link: https://gitea.amass.fun/${{ github.repository }}"> notify.tpl echo "repo link: https://gitea.amass.fun/${{ github.repository }}">> notify.tpl
cat notify.tpl | envsubst | jq -sR . cat notify.tpl | envsubst | jq -sR .
cat notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify cat notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify