Skip to content

Commit

Permalink
Update and enable per-commit UR checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhold committed Oct 30, 2023
1 parent cdb9f4e commit ed1489c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/check-pr-urls.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check URLs in Changed Files

#on: [pull_request, push, workflow_dispatch]
on: [pull_request, push, workflow_dispatch]

jobs:
urlchecks:
Expand All @@ -16,22 +16,26 @@ jobs:
with:
format: 'csv'

# We maintain the list of the URLs excluded from checking in a separate file so that we can use
# We maintain the lists of the URLs and URL patterns excluded from checking in separate files so that we can use
# it in multiple workflows, while easily maintaining consistency.
- name: Read exclude-urls list
id: exclude
id: ex-urls
uses: juliangruber/read-file-action@v1
with:
path: ./.github/workflows/exclude-urls.txt
#
- name: Read exclude-urls list
id: ex-patterns
uses: juliangruber/read-file-action@v1
with:
path: ./.github/workflows/exclude-patterns.txt

# Run URL checks
- name: URLs-checker
- name: urls-checker
uses: urlstechie/urlchecker-action@0.0.33
with:
# only include the changed files
include_files: ${{ steps.files.outputs.added_modified }}
# Use common exclude list read in above
exclude_urls: ${{ steps.exclude.outputs.content }}
exclude_urls: ${{ steps.ex-urls.outputs.content }}
exclude_patterns: ${{ steps.ex-patterns.outputs.content }}
timeout: 10
retry_count: 3
print_all: false

0 comments on commit ed1489c

Please sign in to comment.