GitHub Action
Check URLs from a workflow
The action is danroot/cardscope-action, a composite action (bash, curl, and jq). Use danroot/cardscope-action@v1. A free key covers 300 previews a month; get one on the API page.
Inputs: urls (one URL per line), api-key, platforms (optional), fail-on (error, warning, or never), comment (true or false). Each URL is sent to /v1/preview?source=action. The step writes a markdown table per URL to the job summary. When comment is true and the event is a pull request, it posts or updates one comment with GITHUB_TOKEN.
Store the key as a repository secret named CARDSCOPE_API_KEY. A Vercel or Netlify deployment_status example is in the action README.
permissions:
contents: read
pull-requests: write
steps:
- uses: danroot/cardscope-action@v1
with:
urls: |
https://example.com
api-key: ${{ secrets.CARDSCOPE_API_KEY }}
fail-on: error
comment: true