feat(ci): add workflow_dispatch for retrying failed releases by carlos-alm · Pull Request #33 · optave/ops-codegraph-tool · GitHub
Skip to content

feat(ci): add workflow_dispatch for retrying failed releases#33

Merged
carlos-alm merged 1 commit into
mainfrom
fix/publish-workflow-dispatch
Feb 23, 2026
Merged

feat(ci): add workflow_dispatch for retrying failed releases#33
carlos-alm merged 1 commit into
mainfrom
fix/publish-workflow-dispatch

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

  • Adds workflow_dispatch trigger with a required version input to retry failed stable releases from the Actions UI
  • Routes workflow_dispatch through the stable publish path (version from input, npm_tag=latest, version bump PR + tag)
  • Uses event_name != 'push' guards so both release and workflow_dispatch run the stable-only steps

Test plan

  • Merge to main, then go to Actions > Publish > Run workflow, enter 2.1.0, verify it runs the full stable publish pipeline

@greptile-apps

greptile-apps Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

@carlos-alm carlos-alm merged commit bec0d20 into main Feb 23, 2026
13 checks passed
@carlos-alm carlos-alm deleted the fix/publish-workflow-dispatch branch February 23, 2026 01:52

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 file reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment on lines +58 to +61
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ inputs.version }}"
NPM_TAG="latest"
echo "Stable release (manual retry): $VERSION"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No validation on inputs.version format - could cause issues if user enters version with "v" prefix or invalid semver

Suggested change
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ inputs.version }}"
NPM_TAG="latest"
echo "Stable release (manual retry): $VERSION"
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ inputs.version }}"
# Validate semver format (no 'v' prefix)
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "::error::Invalid version format: $VERSION. Expected format: X.Y.Z (e.g., 2.1.0)"
exit 1
fi
NPM_TAG="latest"
echo "Stable release (manual retry): $VERSION"

@greptile-apps

greptile-apps Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Zeeeepa pushed a commit to Zeeeepa/codegraph that referenced this pull request Jun 22, 2026
feat(ci): add workflow_dispatch for retrying failed releases
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