mirror of
https://github.com/Colin-XKL/Colinx-Blog.git
synced 2026-01-11 02:01:29 +08:00
add hugo link checker
This commit is contained in:
18
.github/workflows/main.workflow
vendored
Normal file
18
.github/workflows/main.workflow
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user