Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): restrict what and when to check with lychee to avoid rate limiting #197

Merged
merged 3 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/check-links-quickly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ name: Check Links Quickly
- dev
paths:
- .github/workflows/check-links-quickly.yaml
- "**.md"
- docs/**.md
pull_request:
paths:
- .github/workflows/check-links-quickly.yaml
- docs/**.md

jobs:
linkChecker:
Expand All @@ -29,7 +32,7 @@ jobs:
uses: lycheeverse/[email protected]
with:
fail: true
args: "--base . --verbose --no-progress --cache --max-cache-age 3d './**/*.md'"
args: "--base . --verbose --no-progress --cache --max-cache-age 3d 'docs/**/*.md'"

- name: Save lychee cache
uses: actions/cache/save@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Run lychee
uses: lycheeverse/[email protected]
with:
args: "--base . --verbose --no-progress --cache --max-cache-age 3d './**/*.md'"
args: "--base . --verbose --no-progress --cache --max-cache-age 3d 'docs/**/*.md'"

- name: Save lychee cache
uses: actions/cache/save@v3
Expand Down
4 changes: 2 additions & 2 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ Myks has two main stages of operation: `sync` and `render`.
The `sync` stage downloads and caches upstream sources, while the `render` stage renders the manifests.
The `all` command runs both stages in sequence for convenience.
All of the commands support accept two optional arguments: environments and applications to process.
When no arguments are provided, myks will use the [Smart Mode](docs/SMARTMODE.md) to detect what to process.
When no arguments are provided, myks will use the [Smart Mode](SMARTMODE.md) to detect what to process.

### Examples

A few example setups are available in the [examples](examples) directory.
A few example setups are available in the [examples](/examples) directory.

And here are some real-world examples:

Expand Down
Loading