From f38c09e81cbe16f804cb722257e454ed536673df Mon Sep 17 00:00:00 2001 From: Derek Morgan <79756941+morethancertified@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:39:40 +0000 Subject: [PATCH] updated infracost --- .github/workflows/infracost.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/infracost.yml b/.github/workflows/infracost.yml index 33a9384..f20a265 100644 --- a/.github/workflows/infracost.yml +++ b/.github/workflows/infracost.yml @@ -1,20 +1,19 @@ -name: 'Run Infracost' +name: 'Check Cost' on: pull_request: types: [opened, synchronize, closed] - + jobs: infracost-pull-request-checks: name: Infracost Pull Request Checks if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize') runs-on: ubuntu-latest environment: production - permissions: contents: read pull-requests: write # Required to post comments - + steps: - name: Setup Infracost uses: infracost/actions/setup@v3 @@ -45,6 +44,7 @@ jobs: --format=json \ --compare-to=/tmp/infracost-base.json \ --out-file=/tmp/infracost.json + - name: Post Infracost comment run: | infracost comment github --path=/tmp/infracost.json \