Skip to content

Commit 209fb63

Browse files
committed
use remote tasks
1 parent d26f654 commit 209fb63

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed
File renamed without changes.

.github/workflows/reusable-link-check.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@ jobs:
1010
link-check:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14-
- uses: jdx/mise-action@5cb1df66ed5e1fb3c670ea0b62fd17a76979826a # v2.3.1
15-
- name: Link check
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
with:
15+
fetch-depth: 0 # needed for merge-base below
16+
17+
- uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
18+
19+
- name: Link check - relative links (all files)
20+
if: github.event_name == 'pull_request'
21+
env:
22+
GITHUB_TOKEN: ${{ github.token }}
23+
run: mise run lint:local-links
24+
25+
- name: Link check (modified files only)
1626
env:
1727
GITHUB_TOKEN: ${{ github.token }}
18-
run: mise run lint-links
28+
run: mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event ${{ github.event_name }}

mise.toml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
[tools]
2-
lychee = "0.18.1"
3-
4-
[tasks.lint-links]
5-
run = "lychee --verbose --config .lychee.toml ."
2+
lychee = "0.20.1"
63

74
[settings]
5+
# Only install tools explicitly defined in the [tools] section above
86
idiomatic_version_file_enable_tools = []
7+
8+
# Windows configuration for file-based tasks
9+
# Based on: https://github.com/jdx/mise/discussions/4461
10+
windows_executable_extensions = ["sh"]
11+
windows_default_file_shell_args = "bash"
12+
use_file_shell_for_executable_tasks = true
13+
14+
[tasks."lint:links"]
15+
file = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/links.sh"
16+
17+
[tasks."lint:local-links"]
18+
file = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/local-links.sh"
19+
20+
[tasks."lint:links-in-modified-files"]
21+
file = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/links-in-modified-files.sh"

0 commit comments

Comments
 (0)