-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add url health job from streamlit app (#902)
* add url health job * lint
- Loading branch information
1 parent
c59f007
commit 219f276
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |