Skip to content

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

Merged
jonathannorris merged 1 commit into
mainfrom
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 into
mainfrom
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

Copilot AI left a comment

Copy link
Copy Markdown

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
jonathannorris added a commit that referenced this pull request Jun 1, 2026
* chore: resolve open dependabot security alerts

- ip-address ^9.0.5 -> ^10.1.1 (resolves to 10.2.0) (medium, alert #58)

* chore: upgrade socks to 2.8.9 to resolve ip-address vulnerability cleanly

Replaces the scoped ip-address@^9.0.5 resolution override with a socks
resolution pinning to ^2.8.9. socks@2.8.9 natively declares ip-address@^10.1.1,
so ip-address 10.2.0 resolves through the proper dependency chain without
bypassing semver ranges.

* chore: replace resolutions overrides with lockfile-only bumps for socks, picomatch, brace-expansion
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