File tree 2 files changed +31
-5
lines changed
2 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 1
- name : deploy.webhook
1
+ name : deploy
2
2
on :
3
3
push :
4
4
branches :
8
8
env :
9
9
AWS_REGION : us-west-2
10
10
jobs :
11
+ validate :
12
+ name : Validate
13
+ runs-on : ubuntu-latest
14
+ outputs :
15
+ status : ${{ steps.early.outputs.status }}
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v3
19
+ - id : Envcheck
20
+ name : Check environment variables
21
+ env :
22
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
23
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
24
+ INDENT_WEBHOOK_SECRET : ${{ secrets.INDENT_WEBHOOK_SECRET }}
25
+ run : |
26
+ status="deploy"
27
+ if [ "$AWS_ACCESS_KEY_ID" == "" ] ||
28
+ [ "$AWS_SECRET_ACCESS_KEY" == "" ] ||
29
+ [ "$INDENT_WEBHOOK_SECRET" == "" ]
30
+ then
31
+ status="skip"
32
+ echo "Missing required enviroment variable(s)"
33
+ fi
34
+ echo "status=$status" >> $GITHUB_OUTPUT
11
35
terraform :
12
36
name : Terraform
37
+ needs : validate
38
+ if : needs.validate.outputs.status == 'deploy'
13
39
runs-on : ubuntu-latest
14
40
steps :
15
41
- name : Checkout
Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ terraform {
10
10
11
11
# Indent + PagerDuty Integration
12
12
13
- # Details: https://github.com/indentapis/integrations/tree/72262bbe55f2582bb1f9aa784ceb620d6457ed7b /packages/stable/indent-integration-pagerduty
14
- # Last Change: https://github.com/indentapis/integrations/commit/72262bbe55f2582bb1f9aa784ceb620d6457ed7b
13
+ # Details: https://github.com/indentapis/integrations/tree/df7a83d97d7220dc20566871e81d90a20ec160e0 /packages/stable/indent-integration-pagerduty
14
+ # Last Change: https://github.com/indentapis/integrations/commit/df7a83d97d7220dc20566871e81d90a20ec160e0
15
15
16
16
module "idt-pagerduty-webhook" {
17
17
source = " git::https://github.com/indentapis/integrations//terraform/modules/indent_runtime_aws_lambda"
18
18
name = " idt-pagerduty-webhook"
19
19
indent_webhook_secret = var. indent_webhook_secret
20
20
artifact = {
21
21
bucket = " indent-artifacts-us-west-2"
22
- function_key = " webhooks/aws/lambda/pagerduty-72262bbe55f2582bb1f9aa784ceb620d6457ed7b -function.zip"
23
- deps_key = " webhooks/aws/lambda/pagerduty-72262bbe55f2582bb1f9aa784ceb620d6457ed7b -deps.zip"
22
+ function_key = " webhooks/aws/lambda/pagerduty-df7a83d97d7220dc20566871e81d90a20ec160e0 -function.zip"
23
+ deps_key = " webhooks/aws/lambda/pagerduty-df7a83d97d7220dc20566871e81d90a20ec160e0 -deps.zip"
24
24
}
25
25
env = {
26
26
PAGERDUTY_KEY = var.pagerduty_key
You can’t perform that action at this time.
0 commit comments