From 29340c52c51edc2ab8f82439fc832fab3ac14ddc Mon Sep 17 00:00:00 2001 From: xun Date: Sat, 4 Nov 2023 22:41:03 +0800 Subject: [PATCH] Fix some error --- .github/workflows/link.yml | 8 ++++---- scripts/webhook.sh | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/link.yml b/.github/workflows/link.yml index f6a7a70..1d3a723 100644 --- a/.github/workflows/link.yml +++ b/.github/workflows/link.yml @@ -40,16 +40,16 @@ jobs: if: ${{ success() }} run: | bash ./scripts/webhook.sh \ - -u "https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }}" \ + -u "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ -w ${{ secrets.WEBHOOK_URL }} \ - -s sastlink -c "${{github.event.pull_request.user.login}}" -f 'success' \ + -s sastlink -c "${{ github.event.pull_request.user.login }}" -f 'success' \ -m "https://github.com/${{ github.repository }}/commit/${{ github.sha }}" - name: Send Fail Message if: ${{ failure() }} run: | bash ./scripts/webhook.sh \ - -u "https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }}" \ + -u "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ -w ${{ secrets.WEBHOOK_URL }} \ - -s sastlink -c "${{github.event.pull_request.user.login}}" -f 'false' \ + -s sastlink -c "${{ github.event.pull_request.user.login }}" -f 'false' \ -m "https://github.com/${{ github.repository }}/commit/${{ github.sha }}" diff --git a/scripts/webhook.sh b/scripts/webhook.sh index 73aba93..76dee12 100644 --- a/scripts/webhook.sh +++ b/scripts/webhook.sh @@ -82,8 +82,6 @@ card_msg='{ } }' -echo $card_msg - curl -X POST -H "Content-Type: application/json" \ -d "$card_msg" \ "$webhook_url"