From 8985e717fe5c6c6bc84661513e2cffdeee948a30 Mon Sep 17 00:00:00 2001 From: Anmol Nagpal Date: Wed, 6 Dec 2023 17:06:11 +0530 Subject: [PATCH] Feat: Add the automerge workflow --- .github/workflows/automerge.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 9bd0f33..9e5f734 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -10,13 +10,16 @@ jobs: static-checks: name: Check the status of static checks runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' + strategy: + matrix: + tf-checks: ["tf-lint / tflint", "tfsec / tfsec sarif report", "tf-checks-website-s3-example / Check code format"] + if: github.actor == 'dependabot[bot]' steps: - - name: Wait for "tflint" to succeed + - name: Wait for "${{ matrix.tf-checks }}" to succeed uses: lewagon/wait-on-check-action@v1.3.1 with: ref: ${{ github.event.pull_request.head.sha }} - check-name: 'tf-lint / tflint' + check-name: ${{ matrix.tf-checks }} repo-token: ${{ secrets.GITHUB }} wait-interval: 30