diff --git a/README.md b/README.md index fda3045..6e936e4 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/action.yml b/action.yml index dcc0ac2..4adc29f 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -252,6 +259,7 @@ runs: fi - name: Run the benchmarks + id: run-benchmarks shell: bash env: GH_MATRIX: "${{ toJson(matrix) }}"