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
- Host: GitHub
- URL: https://github.com/pcjun97/action-setup-tfswitch
- Owner: pcjun97
- Created: 2022-08-29T09:45:32.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T06:13:40.000Z (almost 2 years ago)
- Last Synced: 2025-04-25T16:53:41.249Z (about 1 year ago)
- Topics: github-actions, terraform
- Language: JavaScript
- Homepage:
- Size: 159 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```