Skip to content

Add workflow_dispatch to automate GitOps Promoter version updates#4

Closed
crenshaw-dev with Copilot wants to merge 5 commits into
mainfrom
copilot/add-gitops-promoter-workflow
Closed

Add workflow_dispatch to automate GitOps Promoter version updates#4
crenshaw-dev with Copilot wants to merge 5 commits into
mainfrom
copilot/add-gitops-promoter-workflow

Conversation

Copilot AI commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Adds a manually-triggerable workflow to update GitOps Promoter to the latest release version.

Implementation

  • Version detection: Queries GitHub API for latest release, compares against GITOPS_PROMOTER_VERSION in chart-diff.yaml
  • Manifest regeneration: Runs kubebuilder against latest gitops-promoter source, applies CRD example fixes via sed
  • Version updates:
    • appVersion in chart/Chart.yaml (strips 'v' prefix)
    • GITOPS_PROMOTER_VERSION in .github/workflows/chart-diff.yaml
  • PR automation: Creates PR with changes, links to release notes, auto-deletes branch

Technical notes

  • Mirrors chart-diff.yaml checkout pattern (separate current-repo and gitops-promoter paths)
  • Uses authenticated GitHub API requests to avoid rate limits
  • Skips update if already on latest version

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/argoproj-labs/gitops-promoter/releases/latest
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add workflow_dispatch workflow to update the GitOps Promoter app version</issue_title>
<issue_description>The workflow should pull the latest GitOps Promoter version, run the kubebuilder and sed commands to update the manifests, and then open a PR with the changes. It should update any stored app versions, like the one in the github workflow file and the appVersion field in Chart.yaml.</issue_description>

Comments on the Issue (you are @copilot in this section)


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

Copilot AI and others added 2 commits January 29, 2026 19:59
Co-authored-by: crenshaw-dev <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: crenshaw-dev <350466+crenshaw-dev@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow_dispatch to update GitOps Promoter app version Add workflow_dispatch to automate GitOps Promoter version updates Jan 29, 2026
Copilot AI requested a review from crenshaw-dev January 29, 2026 20:05
@emirot

emirot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@crenshaw-dev we can test it, once merged, Zach just created a new release.

on:
workflow_dispatch:

permissions:

@emirot emirot Feb 2, 2026

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.

@crenshaw-dev it is missing workflow permission becuase we update chart-diff.yaml
Which I believe it is in settings

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.


- name: Create Pull Request
if: steps.check-update.outputs.update_needed == 'true'
uses: peter-evans/create-pull-request@c7fcb2c1d4c851a1d8d82dd61df0e0f8ef373e6f # v7.0.6

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.

This does not resolve, please use latest peter-evans/create-pull-request@c0f553f which is V8

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.

Add workflow_dispatch workflow to update the GitOps Promoter app version

3 participants