Skip to content

Commit 14cbf8f

Browse files
committed
fix check-links
Signed-off-by: emdneto <[email protected]>
1 parent dca972c commit 14cbf8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/check-links.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches: [ main ]
55
pull_request:
66

7+
env:
8+
IGNORE_FILES: "CHANGELOG.md|" # Define ignore list here
9+
710
jobs:
811
changedfiles:
912
name: changed files
@@ -19,7 +22,7 @@ jobs:
1922
- name: Get changed files
2023
id: changes
2124
run: |
22-
echo "md=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} | grep .md$ | xargs)" >> $GITHUB_OUTPUT
25+
echo "md=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} | grep .md$ | grep -v -E "$IGNORE_FILES" | xargs)" >> $GITHUB_OUTPUT
2326
check-links:
2427
runs-on: ubuntu-latest
2528
needs: changedfiles

0 commit comments

Comments
 (0)