From bb8c42c6be1ccac285e21d4414973bb83fe49eca Mon Sep 17 00:00:00 2001 From: Viktorya Ghazaryan <76973530+viktoryathegreat@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:56:34 +0400 Subject: [PATCH] Change by terraform in repo workflow config, Add .github/workflows/infracost.yaml --- .github/workflows/infracost.yaml | 57 -------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .github/workflows/infracost.yaml diff --git a/.github/workflows/infracost.yaml b/.github/workflows/infracost.yaml deleted file mode 100644 index b4be8fa..0000000 --- a/.github/workflows/infracost.yaml +++ /dev/null @@ -1,57 +0,0 @@ -name: Infracost -on: - pull_request: - push: - branches: [main, master] -jobs: - terraform-validate: - runs-on: ubuntu-latest - permissions: - actions: write - contents: write - discussions: write - pull-requests: write - security-events: write - id-token: write - strategy: - matrix: - path: - - / - - steps: - - name: Setup Infracost - uses: infracost/actions/setup@v2 - with: - api-key: ${{secrets.INFRACOST_API_KEY}} - - - name: Checkout base branch - uses: actions/checkout@v3 - with: - ref: '${{ github.event.pull_request.base.ref }}' - - - name: Generate Infracost cost estimate baseline - run: | - infracost breakdown --path=${{ matrix.path }} \ - --format=json \ - --out-file=/tmp/infracost-base.json - continue-on-error: true - - - name: Checkout PR branch - uses: actions/checkout@v3 - - - name: Generate Infracost diff - run: | - infracost diff --path=${{ matrix.path }}\ - --format=json \ - --compare-to=/tmp/infracost-base.json \ - --out-file=/tmp/infracost.json - continue-on-error: true - - - name: Post Infracost comment - run: | - infracost comment github --path=/tmp/infracost.json \ - --repo=$GITHUB_REPOSITORY \ - --github-token=${{github.token}} \ - --pull-request=${{github.event.pull_request.number}} \ - --behavior=update - continue-on-error: true