From 28cafd6e06ddf146f24f136f74f83ec930975e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 4 Jul 2023 19:44:10 +0200 Subject: [PATCH] fix: change to the proper author (#4141) ## About the changes Based on the information displayed here https://github.com/Unleash/unleash/actions/runs/5456442710/jobs/9929252672#step:3:11 this is how we should get the email and name of the committer --- .github/workflows/notify_enterprise.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify_enterprise.yaml b/.github/workflows/notify_enterprise.yaml index b1815db0b1..cedcb0aada 100644 --- a/.github/workflows/notify_enterprise.yaml +++ b/.github/workflows/notify_enterprise.yaml @@ -29,6 +29,7 @@ jobs: echo "github.event.head_commit.committer.email: ${{ github.event.head_commit.committer.email }}" echo "github.actor: ${{ github.actor }}" echo "github.event.commits[0].author.name ${{ github.event.commits[0].author.name }}" + echo "github.event.commits[0].author.email ${{ github.event.commits[0].author.email }}" - name: Trigger sync uses: actions/github-script@v6 with: @@ -41,7 +42,7 @@ jobs: ref: 'master', inputs: { commit: "${{ github.event.head_commit.id }}", - actor: "${{ github.event.head_commit.committer.name || github.actor }} <${{ github.event.head_commit.committer.email }}>", + actor: "${{ github.event.commits[0].author.name }} <${{ github.event.commits[0].author.email }}>", message: ${{ toJSON(github.event.head_commit.message) }}, } })