An open API service indexing awesome lists of open source software.

https://github.com/pcjun97/action-setup-tfswitch

Sets up tfswitch in GitHub Actions workflows
https://github.com/pcjun97/action-setup-tfswitch

github-actions terraform

Last synced: 4 months ago
JSON representation

Sets up tfswitch in GitHub Actions workflows

Awesome Lists containing this project

README

          

# Setup tfswitch

Sets up [tfswitch](https://github.com/warrensbox/terraform-switcher) in a Github Actions workflow.

## Input variables

See action.yml for more detailed information.

- `github-token` - GitHub token to auth against GitHub's API
- `tag` - (Optional) Tag from https://github.com/warrensbox/terraform-switcher/releases

## Usage

Default - Download and set up the latest release.
Will also add a `.tfswitch.toml` to the home directory to configure the terraform installation directory.

```yaml
- uses: pcjun97/action-setup-tfswitch@v1.0.0
with:
github-token: ${{ github.token }}

- run: tfswitch 1.2.0
```

Alternatively, specify a specific version of tfswitch to install.

```yaml
- uses: pcjun97/action-setup-tfswitch@v1.0.0
with:
github-token: ${{ github.token }}
tag: 0.13.1275

- run: tfswitch 1.0.0
```