File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
modules/webhook-github-app Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,21 @@ usages() {
23
23
echo " -a APP_ID GitHub App ID" >&2
24
24
echo " -k APP_PRIVATE_KEY_BASE64 Base64 encoded private key of the GitHub App" >&2
25
25
echo " -f APP APP_PRIVATE_KEY_FILE Path to the private key of the GitHub App" >&2
26
- echo " -we WEBHOOK_ENDPOINT Webhook endpoint" >&2
27
- echo " -ws WEBHOOK_SECRET Webhook secret" >&2
26
+ echo " -e WEBHOOK_ENDPOINT Webhook endpoint" >&2
27
+ echo " -s WEBHOOK_SECRET Webhook secret" >&2
28
28
echo " -h Show this help message" >&2
29
29
exit 1
30
30
}
31
31
32
32
# hadd h flag to show help
33
- while getopts a:f:k:ws:we :h flag
33
+ while getopts a:f:k:s:e :h flag
34
34
do
35
35
case " ${flag} " in
36
36
a) APP_ID=${OPTARG} ;;
37
37
f) APP_PRIVATE_KEY_FILE=${OPTARG} ;;
38
38
k) APP_PRIVATE_KEY_BASE64=${OPTARG} ;;
39
- we ) WEBHOOK_ENDPOINT=${OPTARG} ;;
40
- ws ) WEBHOOK_SECRET=${OPTARG} ;;
39
+ e ) WEBHOOK_ENDPOINT=${OPTARG} ;;
40
+ s ) WEBHOOK_SECRET=${OPTARG} ;;
41
41
h) usages ;;
42
42
esac
43
43
done
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ resource "null_resource" "update_app" {
6
6
7
7
provisioner "local-exec" {
8
8
interpreter = [" bash" , " -c" ]
9
- command = " ${ path . module } /bin/update-app.sh -we ${ var . webhook_endpoint } -ws ${ var . github_app . webhook_secret } -a ${ var . github_app . id } -k ${ var . github_app . key_base64 } "
9
+ command = " ${ path . module } /bin/update-app.sh -e ${ var . webhook_endpoint } -s ${ var . github_app . webhook_secret } -a ${ var . github_app . id } -k ${ var . github_app . key_base64 } "
10
10
on_failure = continue
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments