-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
47 lines (39 loc) · 1.42 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Terramate Action
description: Set up Terramate CLI in GitHub Actions
author: Terramate GmbH
branding:
icon: terminal
color: black
inputs:
version:
description: |
The Terramate Version to install.
If not set and an asdf config is available in .tool-versions at the root of the repository is available, the configured version is used by default.
If not set and no asdf config is found, the latest version will be installed.
required: false
bindir:
description: The destination directory of the installed terramate executable.
required: false
default: /usr/local/bin
use_wrapper:
description: |
The default wrapper script installation can be skipped by setting the use_wrapper variable to 'false'.
required: false
default: "true"
cloud_organization:
description: Terramate Cloud organization to use by default when using Terramate Cloud features.
required: false
runs:
using: "composite"
steps:
- name: Installing Terramate
shell: bash
run: ${{ github.action_path }}/install.sh
env:
TMA_INPUT_VERSION: ${{inputs.version}}
TMA_INPUT_USE_WRAPPER: ${{inputs.use_wrapper}}
TMA_INPUT_BINDIR: ${{inputs.bindir}}
- name: Configuring Terramate execution environment
if: ${{ inputs.cloud_organization != '' }}
shell: bash
run: echo "TM_CLOUD_ORGANIZATION=${{inputs.cloud_organization}}" >> $GITHUB_ENV