Skip to content

Commit

Permalink
Merge pull request #1 from morethancertified/feature
Browse files Browse the repository at this point in the history
updated infracost
  • Loading branch information
Derek Morgan authored Oct 18, 2024
2 parents 18d0d6b + f38c09e commit 49e5c06
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/infracost.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
name: 'Run Infracost'
name: 'Check Cost'

on:
pull_request:
types: [opened, synchronize, closed]
push:
branches:
- main

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 @@ -47,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 49e5c06

Please sign in to comment.