Skip to content

fix: add workflow params for tag-only release#25

Merged
doughayden merged 1 commit intomainfrom
feat/workflow-level-semantic-release-params
Jun 28, 2025
Merged

fix: add workflow params for tag-only release#25
doughayden merged 1 commit intomainfrom
feat/workflow-level-semantic-release-params

Conversation

@doughayden
Copy link
Copy Markdown
Owner

Summary

Adds workflow-level parameters to override semantic-release configuration and ensure tag-only behavior.

Problem

Despite setting commit = false and push = false in pyproject.toml, semantic-release continues attempting to push to the protected main branch, causing workflow failures.

Solution

Add explicit parameters to the GitHub Action to override configuration:

- name: Python Semantic Release
  uses: python-semantic-release/python-semantic-release@v9.15.0
  with:
    commit: "false"
    push: "false" 
    tag: "true"
    vcs_release: "true"

Expected Behavior

  • No commits created - respects protected branch rules
  • No pushes attempted - eliminates branch protection conflicts
  • Tags created - enables semantic versioning
  • GitHub releases generated - provides release automation

Testing

This should resolve the Failed to push branch (main) to remote error by ensuring semantic-release operates in tag-only mode.

Related

🤖 Generated with Claude Code

- Add commit=false, push=false parameters to workflow
- Override pyproject.toml config at action level
- Ensure semantic-release respects tag-only mode

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@doughayden doughayden merged commit 996defc into main Jun 28, 2025
2 checks passed
@doughayden doughayden deleted the feat/workflow-level-semantic-release-params branch June 28, 2025 17:53
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