Skip to content
terminal

GitHub Action

Setup tfswitch

v1.0.0 Latest version

Setup tfswitch

terminal

Setup tfswitch

Sets up tfswitch in your GitHub Actions workflow

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup tfswitch

uses: pcjun97/[email protected]

Learn more about this action in pcjun97/action-setup-tfswitch

Choose a version

Setup tfswitch

Sets up tfswitch in a Github Actions workflow.

Input variables

See action.yml for more detailed information.

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.

- 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