Skip to content

feat: add workflow to auto-update CLI version via repository_dispatch#58

Merged
jonathannorris merged 1 commit intomainfrom
chore-update-cli-version-workflow
Apr 16, 2026
Merged

feat: add workflow to auto-update CLI version via repository_dispatch#58
jonathannorris merged 1 commit intomainfrom
chore-update-cli-version-workflow

Conversation

@jonathannorris
Copy link
Copy Markdown
Member

Summary

  • Adds update-cli-version.yml workflow that receives repository_dispatch events from the CLI release workflow
  • Updates the @devcycle/cli version in src/action.ts, rebuilds dist/, and opens a PR automatically

@jonathannorris jonathannorris requested a review from a team as a code owner April 14, 2026 19:42
Copilot AI review requested due to automatic review settings April 14, 2026 19:42
@jonathannorris jonathannorris force-pushed the chore-update-cli-version-workflow branch from a2759b8 to 8e1eb20 Compare April 14, 2026 19:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.yml triggered by repository_dispatch (update-cli-version).
  • Updates src/action.ts based 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 create will 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_NAME and 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.

Comment thread .github/workflows/update-cli-version.yml
Comment thread .github/workflows/update-cli-version.yml
Comment thread .github/workflows/update-cli-version.yml
Comment thread .github/workflows/update-cli-version.yml
Comment thread .github/workflows/update-cli-version.yml
@jonathannorris jonathannorris force-pushed the chore-update-cli-version-workflow branch from 8e1eb20 to d546945 Compare April 16, 2026 17:11
@jonathannorris jonathannorris merged commit 07000d1 into main Apr 16, 2026
5 checks passed
@jonathannorris jonathannorris deleted the chore-update-cli-version-workflow branch April 16, 2026 18:56
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.

3 participants