Skip to content

Commit

Permalink
ci(gitea): send notification
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonish committed Aug 18, 2024
1 parent ef285b4 commit 8636f3e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitea/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,12 @@ jobs:
## Details
See: [${{ steps.git_tags.outputs.prev }}...${{ steps.git_tags.outputs.current }}](/${{ gitea.repository }}/compare/${{ steps.git_tags.outputs.prev }}...${{ steps.git_tags.outputs.current }}).
- name: Send notification
if: ${{ !cancelled() }}
run: |
if [ -n "${{ vars.CHAT_URL }}" ]; then
echo "Sending notification"
curl --location --request POST "${{ vars.CHAT_URL }}" --data-raw 'payload={"text": "${{ gitea.repository }}\n\n#${{ job.status }}"}'
else
echo "vars.CHAT_URL is empty"
fi

0 comments on commit 8636f3e

Please sign in to comment.