mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +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:
parent
148842e867
commit
28cafd6e06
3
.github/workflows/notify_enterprise.yaml
vendored
3
.github/workflows/notify_enterprise.yaml
vendored
@ -29,6 +29,7 @@ jobs:
|
|||||||
echo "github.event.head_commit.committer.email: ${{ github.event.head_commit.committer.email }}"
|
echo "github.event.head_commit.committer.email: ${{ github.event.head_commit.committer.email }}"
|
||||||
echo "github.actor: ${{ github.actor }}"
|
echo "github.actor: ${{ github.actor }}"
|
||||||
echo "github.event.commits[0].author.name ${{ github.event.commits[0].author.name }}"
|
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
|
- name: Trigger sync
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
@ -41,7 +42,7 @@ jobs:
|
|||||||
ref: 'master',
|
ref: 'master',
|
||||||
inputs: {
|
inputs: {
|
||||||
commit: "${{ github.event.head_commit.id }}",
|
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) }},
|
message: ${{ toJSON(github.event.head_commit.message) }},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user