mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-26 13:03:37 +00:00
Update README.md
updated
This commit is contained in:
parent
39c19f86df
commit
7810ad5077
1 changed files with 10 additions and 7 deletions
17
README.md
17
README.md
|
|
@ -105,30 +105,33 @@ steps:
|
||||||
body: output
|
body: output
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
Specify terraform working directory and previous outputs can be used in subsequent steps for a concise comment on the pull request
|
|
||||||
|
Outputs can be used in subsequent steps to comment on the pull request
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
env:
|
defaults:
|
||||||
tf_actions_working_dir: <Terraform working directory>
|
run:
|
||||||
|
working-directory: ${{ env.tf_actions_working_dir }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: hashicorp/setup-terraform@v1
|
- uses: hashicorp/setup-terraform@v1
|
||||||
|
|
||||||
- name: Terraform fmt
|
- name: Terraform fmt
|
||||||
id: fmt
|
id: fmt
|
||||||
run: cd ${{ env.tf_actions_working_dir }} && terraform fmt
|
run: terraform fmt
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Terraform Init
|
- name: Terraform Init
|
||||||
id: init
|
id: init
|
||||||
run: cd ${{ env.tf_actions_working_dir }} && terraform init
|
run: terraform init
|
||||||
|
|
||||||
- name: Terraform Validate
|
- name: Terraform Validate
|
||||||
id: validate
|
id: validate
|
||||||
run: cd ${{ env.tf_actions_working_dir }} && terraform validate -no-color
|
run: terraform validate -no-color
|
||||||
|
|
||||||
- name: Terraform Plan
|
- name: Terraform Plan
|
||||||
id: plan
|
id: plan
|
||||||
run: cd ${{ env.tf_actions_working_dir }} && terraform plan -no-color
|
run: terraform plan -no-color
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- uses: actions/github-script@0.9.0
|
- uses: actions/github-script@0.9.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue