Skip to content

Add a quiet/verbosity input to suppress or group log output #293

@davidxia

Description

@davidxia

Feature request

It would be useful to have a quiet (or verbosity) input that either suppresses non-error output or wraps the action's log lines inside a GitHub Actions log group (::group::/::endgroup::).

Motivation

When tailscale/github-action is embedded inside a composite action alongside several other steps, its output can dominate the log. Other steps in the same composite already use ::group:: to fold their output, but there is no way to do the same for a uses: action step — GitHub Actions only allows ::group:: inside run: shells. The only current workaround is to replace the action with a manual run: step, which sacrifices the convenience it provides.

Proposed behaviour

Add an optional input, e.g.:

- uses: tailscale/github-action@...
  with:
    oauth-client-id: ${{ inputs.ts-oauth-client-id }}
    oauth-secret: ${{ inputs.ts-oauth-secret }}
    tags: tag:github-actions
    quiet: "true"   # wraps all output in ::group:: or suppresses non-error lines

Alternatively, the action could unconditionally wrap its own output in a collapsed log group by default, similar to how many other setup actions behave.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions