File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Update docs webhook
2
2
on :
3
3
push :
4
+ paths :
5
+ - ' docs/**'
4
6
branches :
5
7
- master
6
8
- branch/v*
@@ -11,11 +13,19 @@ jobs:
11
13
name : Update docs webhook
12
14
runs-on : ubuntu-latest
13
15
environment : update-docs
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ webhooks :
20
+ - url_secret_name : DOCS_DEPLOY_HOOK
21
+ http_method : GET
22
+ - url_secret_name : AMPLIFY_DOCS_DEPLOY_HOOK
23
+ http_method : POST
14
24
steps :
15
25
- name : Call deployment webhook
16
26
env :
17
- WEBHOOK_URL : ${{ secrets.DOCS_DEPLOY_HOOK }}
27
+ WEBHOOK_URL : ${{ secrets[matrix.webhooks.url_secret_name] }}
18
28
run : |
19
- if curl --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
29
+ if curl -X ${{ matrix.webhooks.http_method }} - -silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
20
30
echo "Triggered successfully"
21
31
fi
You can’t perform that action at this time.
0 commit comments