2022-01-25 10:12:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-05-21 03:04:56 +00:00
|
|
|
ARTIFACT_STATUS=$(curl -sSIL "https://gitlab.com/malware-filter/phishing-filter/-/jobs/artifacts/main/download?job=pages" | grep -F "HTTP/2 200")
|
|
|
|
PIPELINE_STATUS=$(curl -sSL "https://gitlab.com/malware-filter/phishing-filter/badges/main/pipeline.svg" | grep -F "failed")
|
2022-01-25 10:12:02 +00:00
|
|
|
GITLAB_STATUS="up"
|
|
|
|
|
2022-03-19 05:37:19 +00:00
|
|
|
if [ -z "$ARTIFACT_STATUS" ] || [ -n "$PIPELINE_STATUS" ]; then
|
2022-01-25 10:12:02 +00:00
|
|
|
GITLAB_STATUS="down"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "GITLAB_STATUS=$GITLAB_STATUS" >> "$GITHUB_ENV"
|