Skip to content

Commit

Permalink
ci: only check docs on PR to main
Browse files Browse the repository at this point in the history
It doesn't make sense to run the links checker on old release branches, since we only
deploy docs from main.

Signed-off-by: William Findlay <will@isovalent.com>
  • Loading branch information
willfindlay committed Feb 26, 2024
1 parent a502491 commit 140cd1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
paths:
- 'docs/**'
- '.github/workflows/build-deploy-docs.yaml'
branches:
- 'main'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-links-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- 'README.md'
- 'docs/content/**.md'
- '.github/workflows/check-links-pr.yaml'
branches:
- 'main'

jobs:
links-checker:
Expand Down

0 comments on commit 140cd1f

Please sign in to comment.