Skip to main content

GitHub Action

Use the replay action to publish CI NDJSON logs and comment replay links on pull requests.

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4

- name: Run tests (your app logs with ciMode enabled)
run: npm test

- name: Publish slogx replay
uses: binhonglee/slogx/replay@main
with:
log_paths: ./slogx_logs/*.ndjson
github_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

InputRequiredDefaultDescription
log_pathsYes-Comma/newline-separated NDJSON files
github_tokenYes-Token with contents:write and pull-requests:write
replay_base_urlNohttps://binhonglee.github.io/slogx/replayReplay page base URL
artifact_branchNoslogx-artifactsBranch where NDJSON files are stored
max_runsNo500Max CI run IDs to keep

Source: replay/action.yml