There was an error while loading. Please reload this page.
1 parent 9f6372e commit 6e93784Copy full SHA for 6e93784
2 files changed
.github/workflows/tfdrift.yaml
@@ -35,7 +35,8 @@ jobs:
35
id: plan
36
run: |
37
cd example/actions/terraform
38
- terraform plan -detailed-exitcode -input=false || echo "exit_code=$?" >> $GITHUB_OUTPUT
+ terraform plan -detailed-exitcode -input=false || EXIT_CODE=$?
39
+ echo "exit_code=${EXIT_CODE:-0}" >> $GITHUB_OUTPUT
40
continue-on-error: true
41
42
- name: Send SNS Notification on Plan Failure
example/actions/terraform/sns.tf
@@ -1,5 +1,9 @@
1
resource "aws_sns_topic" "drift_notification" {
2
name = "${local.name_prefix}-drift-notification"
3
+
4
+ tags = {
5
+ Environment = "production"
6
+ }
7
}
8
9
resource "aws_sns_topic_subscription" "drift_notification_email" {
0 commit comments