diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-19 03:40:33 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-19 03:40:34 +0900 |
commit | c100e3856a624f10b461d202f07f49791aa29c89 (patch) | |
tree | 44e0b812f5ae36b215897c6f5a4fb84f8cd317bb /.github/workflows | |
parent | e139d27748a0548c0ae10fb483c7389caacd4b3d (diff) | |
download | ruby-c100e3856a624f10b461d202f07f49791aa29c89.tar.gz |
Workaround errors on multi-line commit message
by using toJson with fields.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/macos.yml | 4 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 4 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 0b09c21e93..f7935c922c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -56,7 +56,9 @@ jobs: "attachments": [{ "title": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.test_task }}", "title_link": "https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks", - "text": "${{ github.repository }}@${{ github.ref }}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\nby ${{ github.event.head_commit.committer.name }} on ${{ github.event.head_commit.timestamp }}: ${{ github.event.head_commit.message }}", + "text": "${{ github.repository }}@${{ github.ref }}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>", + "fields": [{ "value": ${{ toJson(github.event.head_commit.message) }}, "short": false }], + "footer": "${{ github.event.head_commit.committer.name }} at ${{ github.event.head_commit.timestamp }}", "color": "danger" }] } diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 46a693e559..4c2d08463d 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -59,7 +59,9 @@ jobs: "attachments": [{ "title": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.test_task }}", "title_link": "https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks", - "text": "${{ github.repository }}@${{ github.ref }}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\nby ${{ github.event.head_commit.committer.name }} on ${{ github.event.head_commit.timestamp }}: ${{ github.event.head_commit.message }}", + "text": "${{ github.repository }}@${{ github.ref }}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>", + "fields": [{ "value": ${{ toJson(github.event.head_commit.message) }}, "short": false }], + "footer": "${{ github.event.head_commit.committer.name }} at ${{ github.event.head_commit.timestamp }}", "color": "danger" }] } diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index eb19e81457..20e985dc8d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -60,7 +60,9 @@ jobs: "attachments": [{ "title": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.test_task }}", "title_link": "https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks", - "text": "${{ github.repository }}@${{ github.ref }}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\nby ${{ github.event.head_commit.committer.name }} on ${{ github.event.head_commit.timestamp }}: ${{ github.event.head_commit.message }}", + "text": "${{ github.repository }}@${{ github.ref }}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>", + "fields": [{ "value": ${{ toJson(github.event.head_commit.message) }}, "short": false }], + "footer": "${{ github.event.head_commit.committer.name }} at ${{ github.event.head_commit.timestamp }}", "color": "danger" }] } |