Skip to content

Commit

Permalink
Add url health job from streamlit app (#902)
Browse files Browse the repository at this point in the history
* add url health job

* lint
  • Loading branch information
juanitorduz authored and twiecki committed Sep 10, 2024
1 parent c59f007 commit 219f276
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/streamlit_url_health.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: URL Health

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 */6 * * *'

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Check the deployed service URL
uses: jtalk/url-health-check-action@v4
with:
# Check the following URLs one by one sequentially
url: https://pymc-marketing-app.streamlit.app/
# Follow redirects, or just report success on 3xx status codes
follow-redirect: false # Optional, defaults to false
# Fail this action after this many failed attempts
max-attempts: 3 # Optional, defaults to 1
# Delay between retries
retry-delay: 5s # Optional, only applicable to max-attempts > 1

0 comments on commit 219f276

Please sign in to comment.