update monitor.yml from monitoring.yaml
This commit is contained in:
parent
cdd4b52ab1
commit
5a37d95600
2
.github/workflows/monitor.yml
vendored
2
.github/workflows/monitor.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL")
|
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL")
|
||||||
TIME=$(date "+%Y-%m-%d %H:%M:%S")
|
TIME=$(date "+%Y-%m-%d %H:%M:%S")
|
||||||
|
|
||||||
if [[ "$STATUS" != "$CODE" ]]; then
|
if [[ "$STATUS" == "$CODE" ]]; then
|
||||||
curl -s \
|
curl -s \
|
||||||
--form-string "token=${{ secrets.PUSHOVER_TOKEN }}" \
|
--form-string "token=${{ secrets.PUSHOVER_TOKEN }}" \
|
||||||
--form-string "user=${{ secrets.PUSHOVER_USER }}" \
|
--form-string "user=${{ secrets.PUSHOVER_USER }}" \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user