undo #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |