π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
chore: add discord webhook
SWHL7ac11d768bab
diff --git a/.github/workflows/push_discord.yml b/.github/workflows/push_discord.ymlnew file mode 100644index 0000000..b227095--- /dev/null+++ b/.github/workflows/push_discord.yml@@ -0,0 +1,41 @@+name: discord message+on:+ release:+ types: [published]++jobs:+ notify:+ runs-on: ubuntu-latest+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Prepare Discord message+ id: prepare_message+ run: |+ full_msg="π **New Release!** ${{ github.event.release.name }}++ **Tag:** ${{ github.event.release.tag_name }}+ **Author:** ${{ github.event.release.author.login }}++ **Release Notes:**+ ${{ github.event.release.body }}"++ if [ ${#full_msg} -gt 1990 ]; then+ truncated_msg="${full_msg:0:1987}..."+ else+ truncated_msg="$full_msg"+ fi++ echo "message<<EOF" >> "$GITHUB_OUTPUT"+ echo "$truncated_msg" >> "$GITHUB_OUTPUT"+ echo "EOF" >> "$GITHUB_OUTPUT"++ - name: Send to Discord+ env:+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}+ DISCORD_USERNAME: Github Actions+ DISCORD_AVATAR: https://cdn.discordapp.com/avatars/1460099944252702846/e57fd67dc7ca0cc840a0e87a82281bc5.webp?size=80+ uses: Ilshidur/[email protected]+ with:+ args: ${{ steps.prepare_message.outputs.message }}