Skip to content

Commit

Permalink
Added healthcheck action
Browse files Browse the repository at this point in the history
  • Loading branch information
therealryan authored Aug 24, 2024
1 parent 675e9dd commit 82d8d9f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow hits an endpoint of our bowlby instance and fails if we don't get a success response

name: health

on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Send HTTP request
id: request
uses: tyrrrz/action-http-request@master
with:
url: https://bowlby.flowty.dev/self/latest/therealryan/bowlby/testing.yml/flow_execution_reports/app/target/mctf/latest/index.html
method: GET
retry-count: 3
retry-delay: 500

- name: Fail on non-200
if: ${{ steps.request.outputs.status }} != 1000
run: |
echo "::error file={name},line={line},endLine={endLine},title={title}::{message}"
exit 1

0 comments on commit 82d8d9f

Please sign in to comment.