Skip to content

Commit 157f229

Browse files
website_health yml file updated
1 parent db94bda commit 157f229

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed

.github/workflows/website_health.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
go-version: 1.x
1919

2020
- name: Check Website Health
21-
run: .\websentry.exe --site docfliq.com --maxretry 6
21+
run: go run main.go --site docfliq.com --maxretry 6

helper.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

main.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
flag.Parse()
3535

3636
if *helpFlag {
37-
DisplayUsage()
37+
displayUsage()
3838
}
3939

4040
if *versionFlag {
@@ -55,7 +55,11 @@ func main() {
5555
websiteURLs := strings.Split(*websites, ",")
5656

5757
for _, url := range websiteURLs {
58-
websiteURL = url
58+
if !strings.Contains(strings.ToLower(url), "http") {
59+
websiteURL = "https://" + url
60+
} else {
61+
websiteURL = url
62+
}
5963
checkHealth()
6064
}
6165
}

websentry.exe

-6.68 MB
Binary file not shown.

0 commit comments

Comments
 (0)