From 2250d12f3eb4d76a865f67ce36a861933a4942b4 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 21 Dec 2020 10:02:51 +0100 Subject: [PATCH] ci: gh-actions: fix notify --- .github/notify-gitter.sh | 2 +- .github/workflows/cmake-build-ci.gen | 4 ++-- .github/workflows/cmake-build-ci.yml | 24 ++++++++++++------------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/notify-gitter.sh b/.github/notify-gitter.sh index 0d66504c..edfe9995 100644 --- a/.github/notify-gitter.sh +++ b/.github/notify-gitter.sh @@ -10,7 +10,7 @@ BUILD_URL=https://github.com/${REPO}/actions/runs/${GITHUB_RUN_ID} BUILD_ENV=${ImageOS}/${CC:-${CC_VND}-${CC_VER}} case "$2" in -1|true) +1|true|success) level=info status=success ;; diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index 40c4db2d..1ac55f9e 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -243,8 +243,8 @@ function steps_package() { function steps_notify($os_vnd) { ?> - - name: Notify Gitter (success) - run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ success() }} + - name: Notify Gitter + run: bash .github/notify-gitter.sh ${{ secrets.GITTER }} ${{ job.status }}