Skip to content

Latest commit

 

History

History
120 lines (75 loc) · 4.25 KB

File metadata and controls

120 lines (75 loc) · 4.25 KB

Icon GitHub Action: Set matrix output

Set matrix output

Marketplace Release License Stars PRs Welcome

Overview

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.

Usage

- 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: ""

Inputs

Input Description Required Default
value The matrix output to set. true -
artifact-name The name of the artifact to upload. true -

Outputs

Output Description
artifact-name The real unique name of the uploaded artifact.

Contributing

Contributions are welcome! Please see the contributing guidelines for more details.

License

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.