forked from diggerhq/digger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
44 lines (40 loc) · 1.09 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
name: run-digger
description: Manage terraform collaboration
author: Digger
inputs:
workspace:
description: Name of the terraform workspace
required: false
default: default
outputs:
output:
value: ${{ steps.digger.outputs.output }}
description: The terraform output
runs:
using: composite
steps:
- name: build and run digger
if: ${{ !startsWith(github.action_ref, 'v') }}
shell: bash
run: |
cd ${{ github.action_path }}
go build -o digger ./cmd/digger
chmod +x digger
mv digger /usr/local/bin/digger
cd ${{ github.workspace }}
digger
- name: run digger
if: ${{ startsWith(github.action_ref, 'v') }}
env:
actionref: ${{ github.action_ref }}
id: digger
shell: bash
run: |
curl -sL https://github.com/diggerhq/digger/releases/download/${actionref}/digger-${{ runner.os }}-${{ runner.arch }} -o digger
chmod +x digger
mv digger /usr/local/bin/digger
cd ${{ github.workspace }}
digger
branding:
icon: globe
color: purple