Skip to content
Flarely

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

InputDefaultWhat
tokenrequiredA token with run scope, as a repository secret.
base-urlWhere the checks run; process.env.BASE_URL in specs.
checksall activeCheck ids, space or newline separated.
envExtra env, one KEY=VALUE per line.
retries0Re-run a failing check this many times.
commenttruePost or update the PR comment.
fail-on-failuretrueFail the job when a check fails.

CI runs never open incidents. They are for the pull request, not for paging.