From 3b7eea16995b8915f7431a9136d388b879ef83ed Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin Date: Thu, 25 Aug 2022 20:21:49 +0300 Subject: [PATCH] Add CI build checks for ensure PRs don't break anything --- .github/workflows/matrix_build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/matrix_build.yml b/.github/workflows/matrix_build.yml index e68c7eca..e4f21bb2 100644 --- a/.github/workflows/matrix_build.yml +++ b/.github/workflows/matrix_build.yml @@ -468,3 +468,17 @@ jobs: TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ -F chat_id=$TG_CHANNEL -F document="@$NORFW_PATH" -F caption="$TG_HEADER" + + ci-build-check: + if: always() && github.event.pull_request + runs-on: ubuntu-latest + name: CI Build Check + needs: [buildroot] + steps: + - run: | + result="${{ needs.build.result }}" + if [[ $result == "success" || $result == "skipped" ]]; then + exit 0 + else + exit 1 + fi