File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,11 @@ resource "github_repository_file" "readme" {
40
40
commit_author = " Platform team"
41
41
commit_email = " [email protected] "
42
42
overwrite_on_create = true
43
+ }
44
+
45
+ resource "github_actions_environment_secret" "slack_hook_url" {
46
+ repository = github_repository. gh_repo . name
47
+ environment = " github-pages"
48
+ secret_name = " SLACK_HOOK_URL"
49
+ plaintext_value = var. slack_hook_url
43
50
}
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ variable "gh_token" {
22
22
description = " Github token with permissions to create and delete repos."
23
23
}
24
24
25
+ variable "slack_hook_url" {
26
+ description = " The Slack webhook URL for publishing messages."
27
+ }
28
+
25
29
variable "waypoint_project" {
26
30
type = string
27
31
description = " Name of the Waypoint project."
You can’t perform that action at this time.
0 commit comments