From 7be30846654bfb5b55b37d8694be0d24aa32b9a9 Mon Sep 17 00:00:00 2001 From: arisnguyenit97 Date: Sat, 7 Sep 2024 12:34:49 +0700 Subject: [PATCH] :recycle: refactor: update CI notification #3 --- .github/workflows/ci_notify.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci_notify.yml b/.github/workflows/ci_notify.yml index bba77fc..24bf24b 100644 --- a/.github/workflows/ci_notify.yml +++ b/.github/workflows/ci_notify.yml @@ -35,13 +35,13 @@ jobs: token: ${{ secrets.TELEGRAM_BOT_TOKEN }} format: markdown message: | - 🚀 CI Commit - 🔯 `${{ github.actor }}` created commit: - - message: `${{ github.event.commits[0].message }}` - - hash: `${{ github.sha }}` - - repository: `${{ github.repository }}` - - head: `${{ github.event.head_commit.message }}` - 🍀 See changes: `https://github.com/${{ github.repository }}/commit/${{github.sha}}` + 🚀 *AI Workflow Administrator (AWA)* + - *username*: `${{ github.actor }}` + - *message*: `${{ github.event.commits[0].message }}` + - *hash*: `${{ github.sha }}` + - *repository*: `${{ github.repository }}` + - *head*: `${{ github.event.head_commit.message }}` + 🍀 *See changes*: `https://github.com/${{ github.repository }}/commit/${{github.sha}}` deploy: runs-on: ubuntu-latest @@ -102,10 +102,12 @@ jobs: token: ${{ secrets.TELEGRAM_BOT_TOKEN }} format: markdown message: | - 🚀 New tag created: **${{ env.TAG }}** - 🔯 `${{ github.actor }}` created tag: - - repository: `${{ github.repository }}` - - head: `${{ github.event.head_commit.message }}` - 🍀 See changes: `https://github.com/${{ github.repository }}/releases/tag/${{ env.TAG }}` - 📜 Changelog: + 🚀 *AI Workflow Administrator (AWA)* + - *latest tag*: *${{ env.TAG }}* + - *username*: `${{ github.actor }}` + - *hash*: `${{ github.sha }}` + - *repository*: `${{ github.repository }}` + - *head*: `${{ github.event.head_commit.message }}` + 🍀 *See changes*: `https://github.com/${{ github.repository }}/releases/tag/${{ env.TAG }}` + 📜 *Changelog*: `${{ steps.changelog.outputs.changelog }}`