feat: add workflow to auto-update CLI version via repository_dispatch#58
Merged
jonathannorris merged 1 commit intomainfrom Apr 16, 2026
Merged
Conversation
a2759b8 to
8e1eb20
Compare
There was a problem hiding this comment.
Pull request overview
Adds an automation workflow that listens for repository_dispatch events and opens a PR to bump the @devcycle/cli version used by this GitHub Action (including rebuilding dist/).
Changes:
- Introduces
.github/workflows/update-cli-version.ymltriggered byrepository_dispatch(update-cli-version). - Updates
src/action.tsbased on the dispatched version, rebuilds the project, and pushes a branch. - Creates a pull request automatically via
gh pr create.
Comments suppressed due to low confidence (1)
.github/workflows/update-cli-version.yml:65
gh pr createwill fail if a PR for the same branch already exists (common when retrying jobs or when a previous run partially succeeded). To make this workflow retry-safe, detect an existing PR for$BRANCH_NAMEand either update it (push changes +gh pr edit) or skip creation when one is already open.
env:
GH_TOKEN: ${{ secrets.AUTOMATION_USER_TOKEN }}
run: |
gh pr create \
--base main \
--head "$BRANCH_NAME" \
--title "chore: update CLI version to ${CLI_VERSION}" \
--body "This PR was automatically created by the DevCycle CLI release workflow."
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8e1eb20 to
d546945
Compare
jsalaber
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
update-cli-version.ymlworkflow that receivesrepository_dispatchevents from the CLI release workflow@devcycle/cliversion insrc/action.ts, rebuildsdist/, and opens a PR automatically