diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-12-31 21:26:39 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-12-31 21:26:40 -0800 |
commit | eca964c24e94ceb9146bcf4c010d9abfc632637a (patch) | |
tree | cfb788ce19cf31f016de09fcadbbf092a13acf7e /.github/workflows/cygwin.yml | |
parent | ab9f56b61575617fa2c565543b7ce2afffd1c528 (diff) |
More consistent failure notifications
The format is the same as Travis / AppVeyor now.
Diffstat (limited to '.github/workflows/cygwin.yml')
-rw-r--r-- | .github/workflows/cygwin.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 515b47e141..413f14d186 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -77,3 +77,17 @@ jobs: # run: | # make -C build btest # shell: cmd + - uses: k0kubun/action-slack@v2.0.0 + with: + payload: | + { + "attachments": [{ + "text": "${{ github.workflow }} / ${{ matrix.test_task }} <https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + + "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", + "color": "danger" + }] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: failure() && github.event_name == 'push' |