summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/shadow_job.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/shadow_job.yml b/.github/workflows/shadow_job.yml
index 06488732..6f288a14 100644
--- a/.github/workflows/shadow_job.yml
+++ b/.github/workflows/shadow_job.yml
@@ -52,18 +52,21 @@ jobs:
arguments: check
gradle-home-cache-cleanup: true
+ results:
+ if: ${{ always() }}
+ runs-on: ubuntu-latest
+ name: Final Results
+ needs: [shadow-job]
+ steps:
- name: Report failure to healthchecks.io
- if: ${{ failure() }}
+ # see https://stackoverflow.com/a/67532120/4907315
+ if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
+ run: curl --retry 3 "https://hc-ping.com/${HC_PING_SLUG}/fail"
env:
HC_PING_SLUG: ${{ secrets.HC_PING_SLUG }}
- AGP_VERSION: ${{ matrix.agp-version }}
- run: |
- curl --retry 3 --data-raw "AGP: ${AGP_VERSION}" "https://hc-ping.com/${HC_PING_SLUG}/fail"
- name: Report success to healthchecks.io
- if: ${{ success() }}
+ if: ${{ contains(needs.*.result, 'success') }}
env:
HC_PING_SLUG: ${{ secrets.HC_PING_SLUG }}
- AGP_VERSION: ${{ matrix.agp-version }}
- run: |
- curl --retry 3 --data-raw "AGP: ${AGP_VERSION}" "https://hc-ping.com/${HC_PING_SLUG}"
+ run: curl --retry 3 "https://hc-ping.com/${HC_PING_SLUG}"