From cc590afb4c56f571f88db439d8e49e32f5c1fa1e Mon Sep 17 00:00:00 2001 From: andrewln Date: Wed, 5 Jul 2023 18:37:05 +0300 Subject: [PATCH] YT-19371 Add branch/tag info into telegram notifications --- .github/workflows/cpp.yaml | 4 +++- .github/workflows/go.yaml | 4 +++- .github/workflows/java.yaml | 4 +++- .github/workflows/java_release.yaml | 4 +++- .github/workflows/python_release.yaml | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cpp.yaml b/.github/workflows/cpp.yaml index 5fbc9de793df..e812c28b7dd3 100644 --- a/.github/workflows/cpp.yaml +++ b/.github/workflows/cpp.yaml @@ -208,7 +208,9 @@ jobs: disable_web_page_preview: true format: markdown message: | - Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. Commit: + Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. + Git ${{github.ref_type}}: *${{github.ref_name}}*. + Commit: ``` ${{github.event.head_commit.message}} ``` diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index d916ed4e11f9..1b727962d705 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -105,7 +105,9 @@ jobs: disable_web_page_preview: true format: markdown message: | - Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. Commit: + Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. + Git ${{github.ref_type}}: *${{github.ref_name}}*. + Commit: ``` ${{github.event.head_commit.message}} ``` diff --git a/.github/workflows/java.yaml b/.github/workflows/java.yaml index d9da1a01f2f6..b2b3ff93faa9 100644 --- a/.github/workflows/java.yaml +++ b/.github/workflows/java.yaml @@ -107,7 +107,9 @@ jobs: disable_web_page_preview: true format: markdown message: | - Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. Commit: + Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. + Git ${{github.ref_type}}: *${{github.ref_name}}*. + Commit: ``` ${{github.event.head_commit.message}} ``` diff --git a/.github/workflows/java_release.yaml b/.github/workflows/java_release.yaml index fd0986889093..10842dabdd94 100644 --- a/.github/workflows/java_release.yaml +++ b/.github/workflows/java_release.yaml @@ -100,7 +100,9 @@ jobs: disable_web_page_preview: true format: markdown message: | - Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. Commit: + Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. + Git ${{github.ref_type}}: *${{github.ref_name}}*. + Commit: ``` ${{github.event.head_commit.message}} ``` diff --git a/.github/workflows/python_release.yaml b/.github/workflows/python_release.yaml index aa3be72411d4..502e76bf9d8a 100644 --- a/.github/workflows/python_release.yaml +++ b/.github/workflows/python_release.yaml @@ -159,7 +159,9 @@ jobs: disable_web_page_preview: true format: markdown message: | - Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. Commit: + Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. + Git ${{github.ref_type}}: *${{github.ref_name}}*. + Commit: ``` ${{github.event.head_commit.message}} ```