Skip to content

Add refresh_only input parameter to create-run action #2993

@KofoworolaOgunleye

Description

@KofoworolaOgunleye

Current Behavior

The create-run action in hashicorp/tfc-workflows-github currently supports a refresh parameter (via the API payload), but does not expose a refresh_only input parameter.

When creating a plan run, the action sets:

  • "refresh": true - Refreshes state before planning
  • "refresh-only": false - Still creates a plan with proposed changes

{"CanApply":true,"CanCancel":true,"CanDiscard":true,"CanForceCancel":false,"CanForceExecute":true},"plan-only":true,"position-in-queue":0,"refresh":true,"refresh-only":false,"source":"tfe-api","status":"planned_and_finished","status-timestamps".....

Desired Behavior

Add a refresh_only input parameter to the create-run action that maps to the API's refresh-only attribute.

This would allow users to create refresh-only runs that:

  1. Update Terraform state to match real-world infrastructure
  2. Do NOT propose any infrastructure changes
  3. Are useful for drift detection workflows

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