GitHub Action
Runs the project's checks against a preview deploy and upserts one PR comment: what passed, what failed, the failing step, and an open-trace link that stays valid for a week.
name: Checks
on: [pull_request]
jobs:
flarely:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: amondnet/vercel-action@v25
id: vercel
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
- uses: flarely/action@v1 # published name; see the repository README until then
with:
token: ${{ secrets.FLARELY_TOKEN }}
base-url: ${{ steps.vercel.outputs.preview-url }}Inputs
| Input | Default | What |
|---|---|---|
token | required | A token with run scope, as a repository secret. |
base-url | Where the checks run; process.env.BASE_URL in specs. | |
checks | all active | Check ids, space or newline separated. |
env | Extra env, one KEY=VALUE per line. | |
retries | 0 | Re-run a failing check this many times. |
comment | true | Post or update the PR comment. |
fail-on-failure | true | Fail the job when a check fails. |
CI runs never open incidents. They are for the pull request, not for paging.