Skip to content

Commit f96217b

Browse files
author
Irma
authored
Update hcl-actions-template.yaml
1 parent f0bdcad commit f96217b

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

hcl-actions-template.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ spec:
99
type: service
1010

1111
steps:
12-
# 1️⃣ Read both .tf files
12+
# 1️⃣ Copy everything in the same directory into the workspace
13+
- id: fetch
14+
name: Fetch template directory
15+
action: fetch:template
16+
input:
17+
url: ./
18+
19+
# 2️⃣ Read both .tf files
1320
- id: readA
1421
name: Read base HCL file
1522
action: fs:read
@@ -22,15 +29,15 @@ spec:
2229
input:
2330
path: ./override.tf
2431

25-
# 2️⃣ Merge them
32+
# 3️⃣ Merge them
2633
- id: merge
2734
name: Merge HCL files
2835
action: hcl:merge
2936
input:
3037
aSourceContent: ${{ steps.readA.output.content }}
3138
bSourceContent: ${{ steps.readB.output.content }}
3239

33-
# 3️⃣ Write result
40+
# 4️⃣ Write result
3441
- id: write
3542
name: Write merged HCL
3643
action: fs:write

0 commit comments

Comments
 (0)