/create-terraformrc

A GitHub Action to create a .terraformrc directory

Primary LanguageShellGNU General Public License v3.0GPL-3.0

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