Sets up tfswitch in a Github Actions workflow.
See action.yml for more detailed information.
github-token
- GitHub token to auth against GitHub's APItag
- (Optional) Tag from https://github.com/warrensbox/terraform-switcher/releases
Default - Download and set up the latest release.
Will also add a .tfswitch.toml
to the home directory to configure the terraform installation directory.
- uses: pcjun97/[email protected]
with:
github-token: ${{ github.token }}
- run: tfswitch 1.2.0
Alternatively, specify a specific version of tfswitch to install.
- uses: pcjun97/[email protected]
with:
github-token: ${{ github.token }}
tag: 0.13.1275
- run: tfswitch 1.0.0