URL Health #196
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
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 |