Skip to content

Merge pull request #32 from DrewMcArthur/Add-link-to-literal.club #146

Merge pull request #32 from DrewMcArthur/Add-link-to-literal.club

Merge pull request #32 from DrewMcArthur/Add-link-to-literal.club #146

Workflow file for this run

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@v4
- 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