From: Michael Wallner Date: Fri, 23 Oct 2020 17:58:34 +0000 (+0200) Subject: github: workflow notofies gitter [ci skip] X-Git-Tag: 1.1.0-beta1~166 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=db80327002e27589b29fe4bf353202904f373171;hp=f013c48684ce1d405dc80815139b31282a2a48f5;p=awesomized%2Flibmemcached github: workflow notofies gitter [ci skip] --- diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index bee2d057..e0745162 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -172,10 +172,30 @@ function steps_build() { + - name: Notify Gitter (success) + if: ${{ success() }} + run: | + REF=$(basename ${GITHUB_REF}) + curl -sS "${{ secrets.GITTER }}" \ + --data-urlencode "level=info" \ + --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [success](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})" + - name: Notify Gitter (failure) + if: ${{ failure() }} + run: | + REF=$(basename ${GITHUB_REF}) + curl -sS "${{ secrets.GITTER }}" \ + --data-urlencode "level=error" \ + --data-urlencode "message=Github [${GITHUB_REPOSITORY}](https://github.com/${GITHUB_REPOSITORY}/commits/${REF}) (${REF}) [failure](https://github.com/m6w6/libmemcached/runs/${GITHUB_RUN_ID}) (${{ job.container }}/${CXX})" +