Skip to content

fix(ci): sink release fires on server tags and breaks on slashed refs#12

Merged
jaredLunde merged 1 commit into
mainfrom
fix/sink-release-tag
Jul 13, 2026
Merged

fix(ci): sink release fires on server tags and breaks on slashed refs#12
jaredLunde merged 1 commit into
mainfrom
fix/sink-release-tag

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

The server/v0.1.6 release failed the sink workflow:

cp: cannot create regular file 'beyond-pg-sink-server/v0.1.6-linux-amd64': No such file or directory

Two independent bugs:

1. It should never have run. on: release: types: [published] fires for every release. Every release in this repo's history is server/v* — nothing to do with the sink. Now guarded on sink/v*.

2. Slashed tags break the filename. github.ref_name is server/v0.1.6, interpolated straight into a cp destination — so the shell reads beyond-pg-sink-server/ as a directory that doesn't exist. Asset names now use the bare version (${GITHUB_REF_NAME##*/}); the release is still addressed by its full tag. This would have broken a genuine sink/v* release too.

Unrelated to #11.

🤖 Generated with Claude Code

Two bugs, both hit by the server/v0.1.6 release:

1. `release: published` fires for EVERY release in this repo. Every release
   in its history is `server/v*`, which has nothing to do with the sink — so
   the sink build ran on a server release. Guard on `sink/v*`.

2. Tags carry a slash (`sink/v0.1.0`), and ref_name was interpolated straight
   into a filename, so the shell read everything before the slash as a
   directory:

     cp ... beyond-pg-sink-server/v0.1.6-linux-amd64
     cp: cannot create regular file '...': No such file or directory

   Use the bare version (${GITHUB_REF_NAME##*/}) for asset names; address the
   release by its full tag.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jaredLunde
jaredLunde merged commit 1d6a54b into main Jul 13, 2026
1 check passed
@jaredLunde
jaredLunde deleted the fix/sink-release-tag branch July 13, 2026 18:23
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