Skip to content

Feature to catch the output of ArgoCD GitHub Action #93

@prprasad2020

Description

@prprasad2020

Is your feature request related to a problem? Please describe.
Currently, this GitHub Action doesn't provide a way to capture command outputs as GitHub outputs or variables for use in subsequent workflow steps.

- name: List ArgoCD applications
  uses: clowdhaus/argo-cd-action/@main
  with:
    command: app list
    options: -l ${{ env.label }} -o name --grpc-web --auth-token ${{ inputs.argocd_token }} --server ${{ inputs.argocd_server }}

The output from this command is only printed to the workflow logs but cannot be captured for use in subsequent steps.

Describe the solution you'd like
Enhance the action to capture the output of ArgoCD CLI commands(like app list) and expose them as:

  1. GitHub action outputs
  2. Environment variables
  3. Step outputs that can be referenced in subsequent steps

Describe alternatives you've considered
Install the argocd CLI and execute the command in a bash/shell step and get the output.

Use Cases

  • Dynamically process the list of applications in subsequent workflow steps
  • Make conditional decisions based on application states
  • Generate reports or notifications with application data
  • Chain multiple ArgoCD operations based on previous command results

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions