Skip to content

Make GitHub release creation idempotent - #2

Merged
daniissac merged 1 commit into
mainfrom
agent/idempotent-github-release
Jul 15, 2026
Merged

daniissac merged 1 commit into
mainfrom
agent/idempotent-github-release

Conversation

@daniissac

Copy link
Copy Markdown
Owner

Summary

  • Check whether the tag already has a GitHub release before creating one.
  • Exit successfully when the release exists.
  • Leave existing release assets unchanged.

Root cause

The v0.1.0 workflow successfully built, tested, and published the package, but the final job ran gh release create for a tag that already had a release. GitHub CLI returned a release with the same tag name already exists and marked the workflow failed.

Validation

  • Parsed .github/workflows/publish.yml successfully as YAML.
  • Ran the guard against the existing v0.1.0 release and confirmed it takes the success/skip path.
  • git diff --check passed.

The existing release and PyPI package are intentionally not republished or modified.

@daniissac
daniissac marked this pull request as ready for review July 15, 2026 16:07
@daniissac
daniissac merged commit 4280890 into main Jul 15, 2026
5 checks passed
@daniissac
daniissac deleted the agent/idempotent-github-release branch July 15, 2026 16:09
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