Skip to content

Latest commit

 

History

History

terraform-actions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

terraform-actions

There is a single ./main.sh file that delegates down to other scripts based on the command that you pass in.

Inputs

inputs:
  command:
    description: "The terraform command to run"
    required: true
  header_message:
    description: "Message to add before the terraform output that is posted to a PR. (Must be a single line string)"
    required: false
    default: ""
  working_directory:
    description: "The directory to run all the commands in"
    required: false
    default: "."

Examples

Example usage of terraform plan:

- uses: iStreamPlanet/github-actions/terraform-actions@main
  if: github.event_name == 'pull_request'
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    command: plan
    header_message: "*Note*: This is a message that appears before the terraform plan output"
    working_directory: terraform/

Example usage of terraform apply:

- uses: iStreamPlanet/github-actions/terraform-actions@main
  with:
    command: apply
    working_directory: terraform/