Skip to content

Commit

Permalink
Add composite action tf-install
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 770c18f commit b12148e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/actions/tf-install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: tf-install
inputs:
version:
required: false
default: 0.12.24
os:
required: false
default: linux
arch:
required: false
default: amd64
runs:
using: composite
steps:
- name: download Terraform
run: |-
curl -L -o /tmp/terraform.zip \
https://releases.hashicorp.com/terraform/${{ inputs.version }}/terraform_${{ inputs.version }}_${{ inputs.os }}_${{ inputs.arch }}.zip
shell: bash
- run: unzip -d /go/bin /tmp/terraform.zip
shell: bash

0 comments on commit b12148e

Please sign in to comment.