-
-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathaction.yaml
More file actions
49 lines (46 loc) · 1.97 KB
/
action.yaml
File metadata and controls
49 lines (46 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: tofu-fmt
description: Rewrite OpenTofu files into canonical format
author: Daniel Flook
inputs:
path:
description: The path containing OpenTofu files to format.
required: false
default: "."
workspace:
description: |
OpenTofu workspace to inspect when discovering the OpenTofu version to use, if the version is not otherwise specified.
See [dflook/tofu-version](https://github.com/dflook/terraform-github-actions/tree/main/tofu-version#tofu-version-action) for details.
required: false
default: "default"
variables:
description: |
Variables to set when initializing OpenTofu. This should be valid OpenTofu syntax - like a [variable definition file](https://opentofu.org/docs/language/values/variables/#variable-definitions-tfvars-files).
Variables set here override any given in `var_file`s.
required: false
var_file:
description: |
List of tfvars files to use, one per line.
Paths should be relative to the GitHub Actions workspace
required: false
backend_config:
description: |
List of OpenTofu backend config values, one per line. This is used for discovering the OpenTofu version to use, if the version is not otherwise specified.
See [dflook/tofu-version](https://github.com/dflook/terraform-github-actions/tree/main/tofu-version#tofu-version-action) for details.
required: false
default: ""
backend_config_file:
description: |
List of OpenTofu backend config files to use, one per line. This is used for discovering the OpenTofu version to use, if the version is not otherwise specified.
See [dflook/tofu-version](https://github.com/dflook/terraform-github-actions/tree/main/tofu-version#tofu-version-action) for details.
Paths should be relative to the GitHub Actions workspace
required: false
default: ""
runs:
env:
OPENTOFU: true
using: docker
image: ../image/Dockerfile
entrypoint: /entrypoints/fmt.sh
branding:
icon: globe
color: purple