diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 5aa54e4..62f2a96 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -100,3 +100,19 @@ jobs: - name: 'Pre-Commit 🔎' uses: pre-commit/action@v2.0.3 continue-on-error: true + + + - name: 'Pre-Commit 🔎' + uses: pre-commit/action@v2.0.3 + continue-on-error: true + + - name: 'Slack Notification' + uses: clouddrove/action-slack@v2 + with: + status: ${{ job.status }} + fields: repo,author + author_name: 'CloudDrove' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required + if: always() diff --git a/main.tf b/main.tf index 211598d..1fd0cfc 100644 --- a/main.tf +++ b/main.tf @@ -14,6 +14,7 @@ module "labels" { environment = var.environment managedby = var.managedby label_order = var.label_order + repository = var.repository } diff --git a/variables.tf b/variables.tf index a6d8361..59c28a0 100644 --- a/variables.tf +++ b/variables.tf @@ -8,7 +8,7 @@ variable "name" { variable "repository" { type = string - default = "https://registry.terraform.io/modules/clouddrove/acm/aws" + default = "https://github.com/clouddrove/terraform-aws-acm" description = "Terraform current module repo" }