Skip to content

[Feature Request] Create a dedicated GitHub Action #227

@cstanislawski

Description

@cstanislawski

Problem Statement

Currently, using argocd-diff-preview in a GitHub Actions workflow requires users to copy a fairly complex and verbose docker run command into their YAML file.

This approach has several drawbacks:

  • It's verbose and error-prone - Users need to correctly configure multiple volume mounts (-v), network settings (--network=host), and map workflow variables to the container's environment variables (-e). A small mistake can easily break the setup,
  • It exposes implementation details: The user is forced to interact directly with Docker and understand the internal directory structure (/base-branch, /target-branch) that the tool expects.

Proposed Solution

I propose creating a dedicated, composite GitHub Action for this tool. This would abstract away the complexity of the docker run command and provide a much cleaner, more intuitive, and native user experience within GitHub Actions.

Key benefits would include:

  • Simplicity - Drastically reduces the amount of boilerplate YAML needed,
  • Encapsulation - Hides all the Docker-specific complexity from the end-user,
  • Discoverability - Allows the action to be published on the GitHub Marketplace,
  • Clear Inputs/Outputs - Provides a well-defined interface with inputs and outputs for better workflow integration.

IMO this would be a huge improvement for usability and would make the project much more approachable for new users.

I'd be happy to work on the implementation, but before doing so, I'd like to get some feedback on the idea, what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions