Publish tags to FlakeHub#154
Conversation
📝 WalkthroughWalkthroughAdds a new GitHub Actions workflow that automatically publishes semantic version tags to FlakeHub. The workflow triggers on tag creation or manual dispatch, checks out the repository, initializes Nix, and pushes the package to FlakeHub with public visibility settings. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/flakehub-publish-tagged.yaml:
- Around line 21-26: The workflow uses movable refs for third-party actions
(actions/checkout@v6, DeterminateSystems/determinate-nix-action@v3,
DeterminateSystems/flakehub-push@main); replace each tag/branch ref with the
corresponding full commit SHA for the specific release you reviewed (pin
actions/checkout, determinate-nix-action, and flakehub-push to their full-length
commit hashes), update the workflow inputs to use those SHAs, and commit the
change so the publish job runs only known immutable versions.
- Line 6: Replace the loose regex v?[0-9]+.[0-9]+.[0-9]+* used for the tag
trigger with a stricter SemVer pattern that requires the leading "v" and proper
escaping/anchors (for example ^v[0-9]+\.[0-9]+\.[0-9]+$) so the workflow's tag
filter matches the flakehub-push "tag" input contract; update the regex string
shown in the diff accordingly and verify it is used where the workflow defines
the tag trigger.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 6a650234-2c10-4f2f-957b-c6308957e06f
📒 Files selected for processing (1)
.github/workflows/flakehub-publish-tagged.yaml
Summary by CodeRabbit