Skip to content

OpenTofu arg-destroy ignores false #516

@jbaldodiego

Description

@jbaldodiego

Describe the bug

Using OpenTofu (haven't tested with Terraform), when destroy is set to false the workflow runs with destroy regardless.

To Reproduce

Configure the action with the following arguments:

  • name: TF Via PR Action Plan
    uses: op5dev/tf-via-pr@v13
    with:
    working-directory: tf-dir
    command: plan
    tool: tofu
    comment-pr: always
    expand-diff: true
    arg-auto-approve: true
    arg-destroy: false

Expected behavior

The command being run should be:
tofu plan -chdir=tf-dir

Screenshots

Image

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions