Skip to content

Conversation

@stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Oct 4, 2025

This PR adds a GitHub Action for installing the Flux Operator CLI on GitHub runners for usage in workflows.
All GitHub runners are supported, including Ubuntu, Windows, and macOS.

Usage

Example workflow for printing the latest version:

name: Check the latest version

on:
  workflow_dispatch:

jobs:
  check-latest-flux-operator-version:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Flux Operator CLI
        uses: controlplaneio-fluxcd/flux-operator/actions/setup@main
        with:
          version: latest
      - name: Print Flux Operator Version
        run: flux-operator version --client

Action Inputs

Name Description Default
version Flux Operator version The latest stable release
bindir Alternative location for the CLI $RUNNER_TOOL_CACHE

Action Outputs

Name Description
version The Flux Operator CLI version that was effectively installed

@stefanprodan stefanprodan added enhancement New feature or request area/ci GitHub workflows related issues and pull requests labels Oct 4, 2025
Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@stefanprodan stefanprodan merged commit 400ef0f into main Oct 4, 2025
6 checks passed
@stefanprodan stefanprodan deleted the actions-setup branch October 4, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci GitHub workflows related issues and pull requests enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants