Skip to content

Commit

Permalink
fix: change to the proper author (#4141)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
gastonfournier committed Jul 4, 2023
1 parent 148842e commit 28cafd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/notify_enterprise.yaml
Expand Up @@ -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:
Expand All @@ -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) }},
}
})
Expand Down

0 comments on commit 28cafd6

Please sign in to comment.