1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

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
This commit is contained in:
Gastón Fournier 2023-07-04 19:44:10 +02:00 committed by GitHub
parent 148842e867
commit 28cafd6e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) }},
}
})