Set matrix output in file to be uploaded as artifacts, because GitHub Action does not handle job outputs for matrix. Workaround for https://github.com/orgs/community/discussions/26639.
The GitHub Actions workflow ensures artifact uniqueness by concatenating the workflow's run_id, run_number, and a user-provided artifact-name.
Users can enhance this uniqueness by supplying a distinct artifact-name for each run, further ensuring that each artifact is uniquely identified across all runs and workflows.
This strategy effectively prevents any clashes or overwrites, maintaining the integrity and traceability of artifacts, especially when multiple workflows are executed concurrently or under similar configurations.
- uses: hoverkraft-tech/ci-github-common/actions/set-matrix-output@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
with:
# The matrix output to set.
# This input is required.
value: ""
# The name of the artifact to upload.
# This input is required.
artifact-name: ""| Input | Description | Required | Default |
|---|---|---|---|
value |
The matrix output to set. | true | - |
artifact-name |
The name of the artifact to upload. | true | - |
| Output | Description |
|---|---|
artifact-name |
The real unique name of the uploaded artifact. |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2026 hoverkraft
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.