add hugo link checker

This commit is contained in:
2022-01-08 18:11:06 +08:00
parent 28e090d14f
commit 040164aa9a

18
.github/workflows/main.workflow vendored Normal file
View File

@@ -0,0 +1,18 @@
workflow "Hugo Link Check" {
resolves = "linkcheck"
on = "pull_request"
}
action "filter-to-pr-open-synced" {
uses = "actions/bin/filter@master"
args = "action 'opened|synchronize'"
}
action "linkcheck" {
uses = "marccampbell/hugo-linkcheck-action@v0.1.3"
needs = "filter-to-pr-open-synced"
secrets = ["GITHUB_TOKEN"]
env = {
HUGO_FINAL_URL = "https://blog.colinx.one"
}
}