Skip to content

Add workflow_dispatch inputs to pypi-publish for manual triggering#28

Merged
digreatbrian merged 2 commits intomainfrom
copilot/fix-pypi-publish-workflow
Feb 16, 2026
Merged

Add workflow_dispatch inputs to pypi-publish for manual triggering#28
digreatbrian merged 2 commits intomainfrom
copilot/fix-pypi-publish-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

The pypi-publish workflow had a workflow_dispatch trigger but no input parameters, causing failures when manually triggered since the workflow expects a version tag to extract and validate.

Changes

  • Added required tag input to workflow_dispatch trigger for specifying the version tag to publish (e.g., v1.0.1)
  • Updated version extraction logic to prioritize inputs.tag over event-based references: ${{ inputs.tag || github.event.workflow_run.head_branch || github.ref_name }}
  • Updated checkout ref to use manual input when provided: ${{ inputs.tag || (github.event_name == 'workflow_run' && github.event.workflow_run.head_sha) || github.ref }}

The workflow now supports manual dispatch while maintaining backward compatibility with automatic tag push and workflow_run triggers.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…gering

Co-authored-by: digreatbrian <119015367+digreatbrian@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix pypi-publish action manual trigger issue Add workflow_dispatch inputs to pypi-publish for manual triggering Feb 16, 2026
Copilot AI requested a review from digreatbrian February 16, 2026 18:55
@digreatbrian digreatbrian marked this pull request as ready for review February 16, 2026 18:57
@digreatbrian digreatbrian merged commit 63f5da8 into main Feb 16, 2026
4 checks passed
@digreatbrian digreatbrian deleted the copilot/fix-pypi-publish-workflow branch February 16, 2026 18:57
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.

2 participants