-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.4 KB
/
check-pr-urls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Check URLs in Changed Files
on: [pull_request, push, workflow_dispatch]
jobs:
urlchecks:
name: check-urls
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: files
# uses: jitterbit/get-changed-files@v1 ### Hasn't been updated to Node16
uses: masesgroup/retrieve-changed-files@v3
with:
format: 'csv'
# We maintain the list of the URLs excluded from checking in a separate file so that we can use
# it in multiple workflows, while easily maintaining consistency.
- name: Read exclude-urls list
id: excludeurls
uses: juliangruber/read-file-action@v1
with:
path: ./.github/workflows/exclude-urls.txt
# We maintain the list of the file excluded from checking too
- name: Read exclude-files list
id: excludefiles
uses: juliangruber/read-file-action@v1
with:
path: ./.github/workflows/exclude-files.txt
# Run URL checks
- name: URLs-checker
uses: urlstechie/[email protected]
with:
# only include the changed files
include_files: ${{ steps.files.outputs.added_modified }}
# Use common exclude list read in above
exclude_urls: ${{ steps.excludeurls.outputs.content }}
exclude_files: ${{ steps.excludefiles.outputs.content }}
timeout: 10
retry_count: 3
print_all: true
verbose: true