diff --git a/.github/checklinks.workflow b/.github/checklinks.workflow deleted file mode 100644 index b0884cb1..00000000 --- a/.github/checklinks.workflow +++ /dev/null @@ -1,22 +0,0 @@ -workflow "Hugo Link Check" { - resolves = "linkcheck" - on = ["pull_request", "workflow_dispatch"] - -} - -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_CONFIG = "./website/config.toml" - HUGO_ROOT = "./website" - HUGO_CONTENT_ROOT = "./website/content" - HUGO_FINAL_URL = "https://clusterlink.net" - } -} \ No newline at end of file diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml new file mode 100644 index 00000000..acd42f16 --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,22 @@ +name: Hugo Link Check + +on: + pull_request: + workflow_dispatch: + +jobs: + linkcheck: + runs-on: ubuntu-latest + steps: + - name: Filter to PR Open/Synced + uses: actions/bin/filter@master + with: + args: action 'opened|synchronize' + + - name: Run Hugo Link Check + uses: marccampbell/hugo-linkcheck-action@v0.1.3 + env: + HUGO_CONFIG: "./website/config.toml" + HUGO_ROOT: "./website" + HUGO_CONTENT_ROOT: "./website/content" + HUGO_FINAL_URL: "https://clusterlink.net"