Skip to content

Commit 844e57b

Browse files
committed
links
1 parent 9c56369 commit 844e57b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/check-links.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
- name: Get changed files
2020
id: changes
2121
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
22+
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)
23+
echo "Markdown files changed: $md"
24+
echo "md=$md" >> $GITHUB_OUTPUT
2325
check-links:
2426
runs-on: ubuntu-latest
2527
needs: changedfiles

.github/workflows/check_links_config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
{
77
"pattern": "http(s)?://localhost"
88
},
9+
{
10+
"pattern": "http(s)?://example.com"
11+
},
912
{
1013
"pattern": "http(s)?://example.com"
1114
}

0 commit comments

Comments
 (0)