-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 924 Bytes
/
url-check.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
name: URL Checks
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
get_urls:
name: Load URLs
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.json.outputs.value }}
steps:
- uses: actions/checkout@v3
- name: get specified property
id: load_urls
uses: ActionsTools/read-json-action@main
with:
file_path: "src/data/links.json"
prop_path: "linkData"
- id: json
run: |
echo "linkData=toJson(steps.load_urls.outputs.value)" >> $GITHUB_OUTPUT
check:
name: Check URLs
runs-on: ubuntu-latest
needs: [get_urls]
strategy:
matrix:
value: ${{ fromJson(needs.get_urls.outputs.matrix) }}
steps:
- name: URL Health Check
uses: Jtalk/[email protected]
with:
url: ${{matrix.value}}
follow-redirect: true