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