Skip to content

Commit a9e89e0

Browse files
authored
Merge pull request #77 from diggerhq/motatoes-patch-75
Update main.tf
2 parents 32c1a07 + 60835f3 commit a9e89e0

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.github/workflows/digger_workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
- name: ${{ fromJSON(github.event.inputs.spec).job_id }}
2626
run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}"
2727
- uses: actions/checkout@v4
28-
- uses: diggerhq/digger@vLatest
29-
28+
29+
- name: Setup Infracost
30+
uses: infracost/actions/setup@v2
31+
with:
32+
api-key: ${{ secrets.INFRACOST_API_KEY }}
33+
34+
- name: digger
35+
uses: diggerhq/digger@vLatest
3036
with:
3137
digger-spec: ${{ inputs.spec }}
3238
digger-private-key: ${{ secrets.DIGGER_PRIVATE_KEY }}

digger.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
projects:
2-
- name: dev
3-
dir: .
4-
opentofu: true
5-
- name: staging
6-
dir: .
7-
opentofu: true
8-
- name: prod
9-
dir: .
10-
opentofu: true
1+
workflows:
2+
default:
3+
plan:
4+
steps:
5+
- init
6+
- plan
7+
- run: infracost breakdown --path=. | tee -a $DIGGER_OUT

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "null_resource" "test24" {}
1+
resource "null_resource" "test25" {}
22

33
#variable "TEST" {
44
# default = "hello"

0 commit comments

Comments
 (0)