From ce4cf3bc55e72a63c4be872018c81a9f8ed38e95 Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Fri, 19 May 2023 16:52:39 +0200 Subject: [PATCH] Add workflow id to Datadog event tags (#4965) --- .github/workflows/examples_tests.yml | 1 + .github/workflows/rest_api_tests.yml | 2 ++ .github/workflows/tests.yml | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/examples_tests.yml b/.github/workflows/examples_tests.yml index 8ea563199..04a9d3bfd 100644 --- a/.github/workflows/examples_tests.yml +++ b/.github/workflows/examples_tests.yml @@ -71,5 +71,6 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" diff --git a/.github/workflows/rest_api_tests.yml b/.github/workflows/rest_api_tests.yml index 6870e858f..bbefe3ebb 100644 --- a/.github/workflows/rest_api_tests.yml +++ b/.github/workflows/rest_api_tests.yml @@ -89,6 +89,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -145,5 +146,6 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6952292d5..3f17f9f91 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -94,6 +94,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -166,6 +167,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -235,6 +237,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -287,6 +290,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -347,6 +351,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -399,6 +404,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -451,6 +457,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -513,6 +520,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -567,6 +575,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -619,6 +628,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -671,6 +681,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" @@ -723,6 +734,7 @@ jobs: tags: - "project:${{ github.repository }}" - "job:${{ github.job }}" + - "workflow:${{ github.run_id }}" - "branch:${{ github.ref_name }}" - "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"