Skip to content

Commit

Permalink
updated infracost
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Morgan committed Oct 18, 2024
1 parent 97fb340 commit f38c09e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/infracost.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit f38c09e

Please sign in to comment.