From 040164aa9a728d928577fdcd3277080515628709 Mon Sep 17 00:00:00 2001 From: Colin-XKL Date: Sat, 8 Jan 2022 18:11:06 +0800 Subject: [PATCH] add hugo link checker --- .github/workflows/main.workflow | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.workflow diff --git a/.github/workflows/main.workflow b/.github/workflows/main.workflow new file mode 100644 index 0000000..4b6653f --- /dev/null +++ b/.github/workflows/main.workflow @@ -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" + } +} \ No newline at end of file