Skip to content

fix(cd): mv artifact#4

Merged
shouze merged 1 commit intomainfrom
fix-cd-mv-artifact
Feb 19, 2026
Merged

fix(cd): mv artifact#4
shouze merged 1 commit intomainfrom
fix-cd-mv-artifact

Conversation

@shouze
Copy link
Contributor

@shouze shouze commented Feb 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 19, 2026 02:09
@shouze shouze self-assigned this Feb 19, 2026
@github-actions
Copy link

Coverage after merging fix-cd-mv-artifact into main will be

97.45%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   aggregate.ts100%100%100%100%
   api.ts100%100%100%100%
   group.ts100%100%100%100%
   output.ts98.91%100%94.74%99.39%45
   render.ts97.20%100%100%97.14%142–145
   upgrade.ts77.01%100%88.89%75.64%128, 130–132, 79–93
src/render
   filter.ts100%100%100%100%
   highlight.ts99.29%100%100%99.01%184–185
   rows.ts100%100%100%100%
   selection.ts100%100%100%100%
   summary.ts100%100%100%100%

@shouze shouze merged commit 4e95982 into main Feb 19, 2026
8 checks passed
@shouze shouze deleted the fix-cd-mv-artifact branch February 19, 2026 02:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the CD workflow’s artifact “rename” step in an attempt to fix artifact movement/renaming during release builds.

Changes:

  • Updated the workflow’s mv invocation from verbose-only to interactive + verbose (-iv) when renaming the built binary prior to upload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

src="dist/github-code-search-$(echo '${{ matrix.target }}' | sed 's/^bun-//')"
[ -f "${src}.exe" ] && src="${src}.exe"
mv -v "$src" "dist/${{ matrix.artifact }}"
mv -iv "$src" "dist/${{ matrix.artifact }}"
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

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

Using mv -i in a GitHub Actions step can block or behave unexpectedly if the destination already exists (it may prompt for confirmation, resulting in a hang or a skipped move). More importantly, for several matrix entries src already equals dist/${{ matrix.artifact }} (e.g., linux and windows), so this mv will fail with “are the same file” regardless of -i. Consider computing dest="dist/${{ matrix.artifact }}" and skipping the move when src == dest, and keep the command non-interactive (e.g., plain mv -v with a pre-check/removal or a no-clobber strategy).

Suggested change
mv -iv "$src" "dist/${{ matrix.artifact }}"
dest="dist/${{ matrix.artifact }}"
if [ "$src" != "$dest" ]; then
# Ensure we don't get blocked by interactive prompts and avoid
# "are the same file" errors when src == dest.
[ -e "$dest" ] && rm -f "$dest"
mv -v "$src" "$dest"
fi

Copilot uses AI. Check for mistakes.
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

Comments