Fix snapshot releases to include wfctl binaries; add setup-wfctl composite action#685
Merged
Merged
Conversation
…osite action Agent-Logs-Url: https://github.com/GoCodeAlone/workflow/sessions/20359d07-314d-4038-a59d-227bc3173c6c Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Release wfctl config validate in semver wfctl assets
Fix snapshot releases to include wfctl binaries; add setup-wfctl composite action
May 15, 2026
⏱ Benchmark Results✅ No significant performance regressions detected. benchstat comparison (baseline → PR)
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR expands snapshot release assets so wfctl is available from pre-releases and adds a reusable composite action for installing wfctl in GitHub Actions workflows.
Changes:
- Adds cross-platform
wfctlbinary builds to the pre-release snapshot workflow. - Adds
.github/actions/setup-wfctlto resolve, download, install, and verify a releasedwfctlbinary.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/pre-release.yml |
Publishes wfctl binaries alongside existing snapshot server binaries. |
.github/actions/setup-wfctl/action.yml |
Adds a composite action for installing wfctl from GitHub Releases. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snapshot releases (triggered on every
mainmerge) only publishedworkflow-*server binaries —wfctl-*assets were absent, blocking consumers from testingwfctl config validatewithout waiting for a semver release.Changes
.github/workflows/pre-release.yml— Added cross-platform wfctl builds to the snapshot job alongside the existing server builds. Snapshots now publishwfctl-{linux,darwin}-{amd64,arm64}andwfctl-windows-amd64.exe, makingwfctl config validateavailable immediately after anymainmerge..github/actions/setup-wfctl/action.yml— Added the missing composite action already referenced indocs/WFCTL.mdasGoCodeAlone/workflow/.github/actions/setup-wfctl@main. Resolveslatestvia the GitHub API (usingjq), maps runner OS/arch to Go naming, downloads the binary, adds the install dir toGITHUB_PATH, and verifies withwfctl --version. Exposes aversionoutput with the resolved tag.Note: semver
release.ymlalready had wfctl in its build matrix — no changes needed there.