Skip to content

Commit b64fae1

Browse files
committed
Fix linkech action on PR
1 parent 66c7954 commit b64fae1

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/main.workflow

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

.github/workflows/pull_request.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: Hugo Link Check
22
on:
33
pull_request:
4-
types: [opened, synchronized]
4+
branches:
5+
- main
6+
57
jobs:
6-
filter-to-pr-open-synced:
8+
broken-link-check:
79
runs-on: ubuntu-latest
10+
name: Check for broken links
811
steps:
9-
- uses: actions/checkout@v2
10-
- name: linkcheck
11-
uses: marccampbell/hugo-linkcheck-action@v0.1.2
12-
env:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14-
HUGO_FINAL_URL: https://help.replicated.com
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 1
16+
- name: Check for broken Links
17+
uses: marojor/hugo-broken-link-checker@v1.1.0

0 commit comments

Comments
 (0)