Skip to content

Machine ID: Add bitbucket join method for Bitbucket Pipelines joini… #8061

Machine ID: Add bitbucket join method for Bitbucket Pipelines joini…

Machine ID: Add bitbucket join method for Bitbucket Pipelines joini… #8061

name: Update docs webhook
on:
push:
paths:
- 'docs/**'
branches:
- master
- branch/v*
workflow_dispatch:
jobs:
update-webhook:
name: Update docs webhook
runs-on: ubuntu-latest
environment: update-docs
strategy:
fail-fast: false
matrix:
webhooks:
- url_secret_name: DOCS_DEPLOY_HOOK
http_method: GET
- url_secret_name: AMPLIFY_DOCS_DEPLOY_HOOK
http_method: POST
steps:
- name: Call deployment webhook
env:
WEBHOOK_URL: ${{ secrets[matrix.webhooks.url_secret_name] }}
HTTP_METHOD: ${{ matrix.webhooks.http_method }}
run: |
if curl -X "$HTTP_METHOD" --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
echo "Triggered successfully"
fi