Skip to content

Commit 69b626e

Browse files
authored
Clearer link checking (#2267)
1 parent a2742aa commit 69b626e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,15 @@ jobs:
4444
| grep -E '^(\.github/config/lychee\.toml|mise\.toml)$' || true)
4545
if [ -n "$config_modified" ]; then
4646
echo "modified=true" >> $GITHUB_OUTPUT
47-
else
48-
echo "modified=false" >> $GITHUB_OUTPUT
4947
fi
5048
51-
- name: Link check - all links (modified files only)
52-
if: github.event_name == 'pull_request' && steps.modified-files.outputs.files != ''
49+
- name: Link check (modified files only)
50+
if: github.event_name == 'pull_request' && steps.modified-files.outputs.files != '' && steps.config-check.outputs.modified != 'true'
5351
env:
5452
GITHUB_TOKEN: ${{ github.token }}
5553
run: mise run lint-links ${{ steps.modified-files.outputs.files }}
5654

57-
- name: Link check - all links (all files)
55+
- name: Link check (all files)
5856
if: github.event_name != 'pull_request' || steps.config-check.outputs.modified == 'true'
5957
env:
6058
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)