Skip to content

Commit 00d4e20

Browse files
authored
Add url health job from streamlit app (#902)
* add url health job * lint
1 parent 4abac88 commit 00d4e20

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: URL Health
2+
3+
on:
4+
schedule:
5+
# * is a special character in YAML so you have to quote this string
6+
- cron: '0 */6 * * *'
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check the deployed service URL
16+
uses: jtalk/url-health-check-action@v4
17+
with:
18+
# Check the following URLs one by one sequentially
19+
url: https://pymc-marketing-app.streamlit.app/
20+
# Follow redirects, or just report success on 3xx status codes
21+
follow-redirect: false # Optional, defaults to false
22+
# Fail this action after this many failed attempts
23+
max-attempts: 3 # Optional, defaults to 1
24+
# Delay between retries
25+
retry-delay: 5s # Optional, only applicable to max-attempts > 1

0 commit comments

Comments
 (0)