From 87e20d9594bdc1d917aed06d93e1210b545d107c Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Sun, 30 Jun 2024 17:20:24 +0800 Subject: [PATCH] test env. --- .gitea/workflows/deploy.yaml | 5 +++++ resources/notify.tpl | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 73ce0f9..95adfa2 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -14,6 +14,11 @@ jobs: - name: Send success notification if: ${{ always() }} run: | + AMASS_REPO_NAME=${{ github.repository }} + AMASS_BUILD_STATUS=${{ job.status }} + AMASS_COMMIT=${{ github.sha }} + AMASS_COMMIT_MESSAGE=${{ github.event.head_commit.message }} + AMASS_REPO_LINK=https://gitea.amass.fun/${{ github.repository }} echo build ${{ github.repository }} 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 diff --git a/resources/notify.tpl b/resources/notify.tpl index faadb8d..be5b6ec 100644 --- a/resources/notify.tpl +++ b/resources/notify.tpl @@ -1,6 +1,6 @@ -repo: ${{ github.repository }} -status: ${{ job.status }} -commit: ${{ github.sha }} -message: ${{ github.event.head_commit.message }} -build link: $DRONE_BUILD_LINK -repo link: https://gitea.amass.fun/${{ github.repository }} \ No newline at end of file +repo: $AMASS_REPO_NAME +status: $AMASS_BUILD_STATUS +commit: $AMASS_COMMIT +message: $AMASS_COMMIT_MESSAGE +build link: $AMASS_BUILD_LINK +repo link: $AMASS_REPO_LINK \ No newline at end of file