From aff6a73b6bdedf00c0d5043dd92f2820eec58b15 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Fri, 6 Oct 2023 18:44:15 +0200 Subject: [PATCH] Add CI notifications --- .github/workflows/test_new_api.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test_new_api.yml b/.github/workflows/test_new_api.yml index 4539fc35..8ec1d9dc 100644 --- a/.github/workflows/test_new_api.yml +++ b/.github/workflows/test_new_api.yml @@ -34,6 +34,14 @@ jobs: run: cd api && T="--show-capture=no -s -vv" make tests #run: T="--show-capture=no -s -vv --junitxml=pytest.xml" make tests + - name: Notify success + if: ${{ success() }} + run: curl -s -d "CI: API OK 😄" https://ntfy.sh/ooni-7aGhaS + + - name: Notify failure + if: ${{ failure() }} + run: curl -d "CI: API FAIL 😞" https://ntfy.sh/ooni-7aGhaS + #- name: debug docker # if: always() # run: docker ps -a