Skip to content

Latest commit

 

History

History
executable file
·
41 lines (27 loc) · 831 Bytes

README.md

File metadata and controls

executable file
·
41 lines (27 loc) · 831 Bytes

Create .terraformrc

A GitHub action to automatically create a Terraform Enterprise .terraformrc directory and insert a token from TF_ENV_TOKEN.

NOTE: much of this was swiped wholesale from the excellent https://github.com/jessfraz/branch-cleanup-action

Table of Contents

Usage

workflow "On push, create .terraformrc" {
  on = "push"
  resolves = ["create terraformrc"]
}

action "create terraformrc" {
  uses = "sntxrr/create-terraformrc@master"
  secrets = ["TF_ENV_TOKEN"]
}

Contributing

Running the tests

The tests use shellcheck. You don't need to install anything. They run in a container.

$ make test