-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
48 lines (46 loc) · 1.25 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
48
---
name: 'Custom CML-TPI'
description: 'Use a custom git/ref version of CML/TPI for hacky testing'
author: 'Daniel Barnes'
inputs:
cml:
descripton: 'git branch to use'
required: false
default: 'master'
tpi:
descripton: 'git branch to use'
required: false
default: 'master'
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
with:
repository: iterative/terraform-provider-iterative
ref: ${{ inputs.tpi }}
path: terraform-provider-iterative
- uses: actions/setup-go@v2
with:
go-version: '1.17.x'
- name: Hack new tpi
shell: bash
run: |
pushd terraform-provider-iterative
make build
make install
popd
- uses: actions/checkout@v3
with:
repository: iterative/cml
ref: ${{ inputs.cml }}
path: cml
- name: Hack new cml
shell: bash
run: |
pushd cml
npm install
sed -i "s/default: '>= 0.9.10'/default: ''/g" bin/cml/runner.js
sed -i 's/source = "iterative\/iterative"/source = "github.com\/iterative\/iterative"/g' src/terraform.js
sed -i 's/return template;/console.log(template);return template;/g' src/terraform.js
npm install --global .
popd