From 40b5a9c7f84ca397454af997cb01c9968fcdc2a3 Mon Sep 17 00:00:00 2001 From: Anmol Nagpal Date: Thu, 28 Dec 2023 15:39:44 +0530 Subject: [PATCH] Feat: Add automerge github shared workflow --- .github/workflows/auto_assignee.yml | 2 +- .github/workflows/automerge.yml | 12 ++++++++++++ .github/workflows/changelog.yml | 2 +- .github/workflows/tf-checks.yml | 2 +- .github/workflows/tflint.yml | 2 +- .github/workflows/tfsec.yml | 2 +- main.tf | 2 +- 7 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/automerge.yml diff --git a/.github/workflows/auto_assignee.yml b/.github/workflows/auto_assignee.yml index f8b8bcd..751c4bc 100644 --- a/.github/workflows/auto_assignee.yml +++ b/.github/workflows/auto_assignee.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: assignee: - uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@master + uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@1.0.9 secrets: GITHUB: ${{ secrets.GITHUB }} with: diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 0000000..4090802 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,12 @@ +--- +name: Auto merge +on: + pull_request: +jobs: + auto-merge: + uses: clouddrove/github-shared-workflows/.github/workflows/auto_merge.yml@1.0.9 + secrets: + GITHUB: ${{ secrets.GITHUB }} + with: + tfcheck: 'example / Evaluate Terraform versions (1.5.0, ./_example/public)' +... diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 1ee6f78..b3d9eb2 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: changelog: - uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master + uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@1.0.9 secrets: inherit with: branch: 'master' diff --git a/.github/workflows/tf-checks.yml b/.github/workflows/tf-checks.yml index d426995..380e4f7 100644 --- a/.github/workflows/tf-checks.yml +++ b/.github/workflows/tf-checks.yml @@ -6,6 +6,6 @@ on: workflow_dispatch: jobs: example: - uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master + uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.0.9 with: working_directory: './_example/public' diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index d7bdd8c..0ba0ac7 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -6,6 +6,6 @@ on: workflow_dispatch: jobs: tflint: - uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master + uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@1.0.9 secrets: GITHUB: ${{ secrets.GITHUB }} diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml index c203751..daefede 100644 --- a/.github/workflows/tfsec.yml +++ b/.github/workflows/tfsec.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: jobs: tfsec: - uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master + uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@1.0.9 secrets: inherit with: working_directory: '.' diff --git a/main.tf b/main.tf index 6f85b3b..1a176a0 100644 --- a/main.tf +++ b/main.tf @@ -47,7 +47,7 @@ data "aws_s3_bucket" "landing" { } resource "aws_cloudwatch_log_group" "sftp_log_group" { - name = "/aws/transfer/${module.labels.id}" + name = "/aws/transfer/${module.labels.id}" retention_in_days = 90 }