This commit is contained in:
parent
c7b0b8fe1f
commit
cd7b2b8deb
@ -14,11 +14,9 @@ jobs:
|
||||
- name: Send success notification
|
||||
if: ${{ always() }}
|
||||
run: |
|
||||
echo "repo: ${{ github.repository }}" >> notify.tpl
|
||||
echo "actor:${{ github.actor }}" >> notify.tpl
|
||||
echo "status: ${{ job.status }}">> notify.tpl
|
||||
echo "commit: ${{ github.sha }}">> notify.tpl
|
||||
echo "repo: ${{ github.repository }}" >> notify.tpl
|
||||
echo "status: ${{ job.status }}">> notify.tpl
|
||||
echo "commit: $(git rev-parse --short HEAD)">> notify.tpl
|
||||
echo "message: ${{ github.event.head_commit.message }}">> notify.tpl
|
||||
echo "仓库地址: ${{ github.repositoryUrl }}">> notify.tpl
|
||||
cat notify.tpl | envsubst | jq -sR .
|
||||
echo "repo link: https://gitea.amass.fun/${{ github.repositoryUrl }}">> notify.tpl
|
||||
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
|
@ -1,6 +0,0 @@
|
||||
repo: $AMASS_GITEA_REPO_NAME
|
||||
status: $AMASS_GITEA_BUILD_STATUS
|
||||
commit: $AMASS_GITEA_COMMIT
|
||||
message: $AMASS_GITEA_COMMIT_MESSAGE
|
||||
build link: $AMASS_GITEA_BUILD_LINK
|
||||
repo link: $AMASS_GITEA_REPO_LINK
|
Loading…
Reference in New Issue
Block a user