Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
experimental-memory-track-physical: ""
```

# Outputs

| Name | Description |
| -------- | ----------------------------------------------------------------------------------------- |
| `run-id` | The id of the CodSpeed run the results were uploaded to. Requires runner v5.4.0 or later. |

# Example usage

## Python with `pytest` and [`pytest-codspeed`](https://github.com/CodSpeedHQ/pytest-codspeed)
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ inputs:
required: false
default: "false"

outputs:
run-id:
description: |
The id of the CodSpeed run the results were uploaded to.
Requires runner v5.4.0 or later.
value: ${{ steps.run-benchmarks.outputs.run-id }}

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -252,6 +259,7 @@ runs:
fi

- name: Run the benchmarks
id: run-benchmarks
shell: bash
env:
GH_MATRIX: "${{ toJson(matrix) }}"
Expand Down
Loading