Skip to content

fix(ci): goreleaser config works - #25

Merged
Cali0707 merged 1 commit into
mcpchecker:mainfrom
Cali0707:fix-goreleaser
Feb 27, 2026
Merged

fix(ci): goreleaser config works#25
Cali0707 merged 1 commit into
mcpchecker:mainfrom
Cali0707:fix-goreleaser

Conversation

@Cali0707

@Cali0707 Cali0707 commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Optimized nightly release workflow by consolidating release creation and cleanup into a single step.
    • Streamlined goreleaser configuration to improve efficiency of nightly builds.

@coderabbitai

coderabbitai Bot commented Feb 27, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The pull request refactors the nightly release workflow by consolidating the cleanup-and-delete flow into a single direct release creation step with integrated artifact uploading. Additionally, goreleaser configuration is adjusted to ignore nightly tags and remove the dedicated nightly release block, switching to snapshot mode with clean and skip-publish flags.

Changes

Cohort / File(s) Summary
Nightly Release Workflow
.github/workflows/nightly.yaml
Restructures nightly release creation to generate timestamped titles with commit hashes, marks as prerelease, adds artifact upload via gh release upload, replaces cleanup-then-delete logic with direct release generation, and switches goreleaser from nightly to snapshot mode with clean and skip-publish flags.
Goreleaser Configuration
.goreleaser.yaml
Adds git.ignore_tags: nightly directive and removes the dedicated nightly release configuration block (tag_name, name_template, keep_single_release, publish_release).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • cleanup(ci): move to using goreleaser #24: Modifies the same nightly release workflow files (.github/workflows/nightly.yaml and .goreleaser.yaml) to refactor the nightly release process with goreleaser integration.

Suggested reviewers

  • matzew
  • nader-ziada

Poem

🐰 A nightly release takes flight,
No more delete-then-create plight!
Snapshot mode with a timestamped name,
Goreleaser keeps the whole thing tame. ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is vague and generic, using imprecise language ('works') that doesn't clearly describe what was fixed or the specific nature of the goreleaser configuration changes. Revise the title to be more specific about what was fixed, such as 'fix(ci): streamline nightly release workflow with goreleaser' or similar descriptive phrasing.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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/nightly.yaml:
- Around line 75-81: Move the "Prepare nightly release" step (the job step named
"Prepare nightly release") so it runs after the GoReleaser step completes
successfully and before any artifact upload/publishing steps; this means
removing the GH release/tag creation from its current pre-build position and
inserting it immediately after the GoReleaser step in the job flow so tag
creation only occurs when the build step (GoReleaser) has succeeded and before
uploading artifacts or marking the release as complete.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5c73995 and 567d55d.

📒 Files selected for processing (2)
  • .github/workflows/nightly.yaml
  • .goreleaser.yaml

Comment on lines +75 to +81
- name: Prepare nightly release
run: |
# Delete existing nightly release if it exists
if gh release view nightly >/dev/null 2>&1; then
echo "Deleting existing nightly release"
gh release delete nightly --yes
fi

# Delete existing nightly tag if it exists
if git rev-parse --verify nightly >/dev/null 2>&1; then
echo "Deleting existing nightly tag"
git tag -d nightly
git push origin :refs/tags/nightly 2>/dev/null || true
fi
gh release delete nightly --yes --cleanup-tag || true
gh release create nightly \
--title "Nightly ($(date -u +%Y-%m-%d) - $(git rev-parse --short HEAD))" \
--generate-notes \
--prerelease

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# First, let's read the nightly.yaml workflow file to understand its full structure
cat -n .github/workflows/nightly.yaml

Repository: mcpchecker/kubernetes-extension

Length of output: 4027


Move the "Prepare nightly release" step to run after GoReleaser completes.

The workflow currently creates the nightly tag before running GoReleaser (line 75–81 before line 93–99). If GoReleaser fails, the nightly tag is already pointing to the current commit. The skip gate at lines 54–57 will prevent retries for the same commit, leaving a broken nightly release in place.

Move the "Prepare nightly release" step to after the build succeeds and before artifacts are uploaded so that tag mutations only occur when all build steps have passed.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/nightly.yaml around lines 75 - 81, Move the "Prepare
nightly release" step (the job step named "Prepare nightly release") so it runs
after the GoReleaser step completes successfully and before any artifact
upload/publishing steps; this means removing the GH release/tag creation from
its current pre-build position and inserting it immediately after the GoReleaser
step in the job flow so tag creation only occurs when the build step
(GoReleaser) has succeeded and before uploading artifacts or marking the release
as complete.

@Cali0707
Cali0707 merged commit fb99bb3 into mcpchecker:main Feb 27, 2026
2 checks passed
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.

1 participant