Skip to content

Expose artifact name as workflow output#251

Open
Biont wants to merge 2 commits into
mainfrom
feature/artifact-workflow-output
Open

Expose artifact name as workflow output#251
Biont wants to merge 2 commits into
mainfrom
feature/artifact-workflow-output

Conversation

@Biont
Copy link
Copy Markdown
Member

@Biont Biont commented Jun 1, 2026

Expose artifact name as workflow output in build-and-distribute

Add an artifact output to the build-and-distribute workflow so calling workflows can reference the generated artifact name without reconstructing it manually.

A dedicated step captures the artifact name into both GITHUB_ENV and GITHUB_OUTPUT, making it available to the upload step and to any downstream jobs via needs.<job>.outputs.artifact.

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

build-plugin-archive already exposes the generated archive name as a workflow_call output (artifact). This PR brings the same behaviour to build-and-distribute.

Changes

  • build-and-distribute.yml: Added a Set artifact name step that writes the artifact name (PACKAGE_NAME-PACKAGE_VERSION) to both $GITHUB_ENV and $GITHUB_OUTPUT, ensuring a single computed value is used everywhere. Wired that step output up through job-level and workflow-level outputs blocks so callers can reference it via needs.<job>.outputs.artifact.
  • docs/build-and-distribute.md: Added a "Workflow output" subsection under "Artifact Output" documenting the new output and showing how a downstream job can consume it with actions/download-artifact.

Add an `artifact` output to the build-and-distribute workflow so
calling workflows can reference the generated artifact name without
reconstructing it manually.

A dedicated step captures the artifact name into both GITHUB_ENV
and GITHUB_OUTPUT, making it available to the upload step and to
any downstream jobs via `needs.<job>.outputs.artifact`.
@Biont Biont requested a review from a team as a code owner June 1, 2026 08:24
Copy link
Copy Markdown
Member

@tyrann0us tyrann0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise LGTM. Thanks for working on that!

Comment thread .github/workflows/build-and-distribute.yml Outdated
Signed-off-by: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants