Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 766 Bytes

README.md

File metadata and controls

27 lines (24 loc) · 766 Bytes

Used together with action-terraform for auto-approving (and merging) of pull request created by Dependabot

Example usage:

  terraform:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Terraform
        uses: Pararius/[email protected]
        with:
          terraform_directory: ./terraform
          terraform_do_apply: false
          terraform_parallelism: 3

  auto-approve:
    runs-on: ubuntu-latest
    needs: [terraform]
    if: github.actor == 'dependabot[bot]'
    steps:
      - uses: Pararius/action-terraform-automerge@dev
        with:
          github-token: <github-token-here>
          terraform-directory: 'terraform/'
          merge: true