Use `event` github context object property rather than payload for repository and commit payload file integration test. Tweak repository and commit fields in payload file test. Tweak author field in payload file test. Drop message, link to user profile for actor field. Co-authored-by: hideki narimiya <[email protected]>
28 lines
894 B
JSON
28 lines
894 B
JSON
{
|
|
"text": "A GitHub Action Event ${{ github.eventName }} has ${{ env.JOB_STATUS }}",
|
|
"attachments": [{
|
|
"color": "${{ env.ATTACHMENT_COLOR }}",
|
|
"fields": [{
|
|
"title": "Repository",
|
|
"short": false,
|
|
"value": "<${{ github.payload.repository.html_url }}|${{ github.payload.repository.full_name }}>"
|
|
}, {
|
|
"title": "Ref",
|
|
"short": false,
|
|
"value": "${{ github.ref }}"
|
|
}, {
|
|
"title": "Commit",
|
|
"short": false,
|
|
"value": "<${{ github.payload.repository.html_url }}/commit/${{ github.sha }}|${{ github.sha }}>"
|
|
}, {
|
|
"title": "Author",
|
|
"short": false,
|
|
"value": "<https://github.com/${{ github.actor }}|${{ github.actor }}>"
|
|
}, {
|
|
"title": "Workflow",
|
|
"short": false,
|
|
"value": "<${{ github.payload.repository.html_url }}/actions/runs/${{ github.runId }}|${{ github.workflow }}>"
|
|
}]
|
|
}]
|
|
}
|