From 64f212fddabc99bb59fa07b98ecad7e4d4d5be68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 5 Jun 2023 09:47:20 +0200 Subject: [PATCH] fix: author and email should be for PRs (#3899) ## About the changes Previous PR https://github.com/Unleash/unleash/pull/3871 we were supposed to change this for PRs but the change was made on `release.yaml` file. This fixes the issue --- .github/workflows/notify_enterprise.yaml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify_enterprise.yaml b/.github/workflows/notify_enterprise.yaml index 1c1f589e163..c9c1552d88c 100644 --- a/.github/workflows/notify_enterprise.yaml +++ b/.github/workflows/notify_enterprise.yaml @@ -34,7 +34,7 @@ jobs: inputs: { repository: "${{ github.repository }}", commit: "${{ github.event.head_commit.id }}", - actor: "${{ github.actor }}", + actor: "${{ github.event.head_commit.committer.name || github.actor }} <${{ github.event.head_commit.committer.email }}>", message: ${{ toJSON(github.event.head_commit.message) }}, } }) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 51879ab4855..33ca7317d38 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,7 +55,7 @@ jobs: inputs: { repository: "${{ github.repository }}", commit: "${{ github.event.head_commit.id }}", - actor: "${{ github.event.head_commit.committer.name }} <${{ github.event.head_commit.committer.email }}>", + actor: "${{ github.actor }}", message: ${{ toJSON(github.event.head_commit.message) }}, } })