Skip to content

Commit

Permalink
Merge pull request #67 from NJUPT-SAST/dev-xun
Browse files Browse the repository at this point in the history
Fix some error
  • Loading branch information
Xunop authored Nov 4, 2023
2 parents d0d40eb + 29340c5 commit 557e891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
2 changes: 0 additions & 2 deletions scripts/webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ card_msg='{
}
}'

echo $card_msg

curl -X POST -H "Content-Type: application/json" \
-d "$card_msg" \
"$webhook_url"

0 comments on commit 557e891

Please sign in to comment.