diff --git a/.github/workflows/digger_workflow.yml b/.github/workflows/digger_workflow.yml index e241066..5336429 100644 --- a/.github/workflows/digger_workflow.yml +++ b/.github/workflows/digger_workflow.yml @@ -25,8 +25,14 @@ jobs: - name: ${{ fromJSON(github.event.inputs.spec).job_id }} run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}" - uses: actions/checkout@v4 - - uses: diggerhq/digger@vLatest - + + - name: Setup Infracost + uses: infracost/actions/setup@v2 + with: + api-key: ${{ secrets.INFRACOST_API_KEY }} + + - name: digger + uses: diggerhq/digger@vLatest with: digger-spec: ${{ inputs.spec }} digger-private-key: ${{ secrets.DIGGER_PRIVATE_KEY }} diff --git a/digger.yml b/digger.yml index 8f0b77c..56319ef 100644 --- a/digger.yml +++ b/digger.yml @@ -1,10 +1,7 @@ -projects: - - name: dev - dir: . - opentofu: true - - name: staging - dir: . - opentofu: true - - name: prod - dir: . - opentofu: true +workflows: + default: + plan: + steps: + - init + - plan + - run: infracost breakdown --path=. | tee -a $DIGGER_OUT diff --git a/main.tf b/main.tf index 24dee24..3b222ac 100644 --- a/main.tf +++ b/main.tf @@ -1,4 +1,4 @@ -resource "null_resource" "test24" {} +resource "null_resource" "test25" {} #variable "TEST" { # default = "hello"