Files
teleport/.github/workflows/update-docs-webhook.yaml
T
Taras a4c9470899 gha(update-docs-webhook): fix workflow syntax (#50778)
* gha(update-docs-webhook): fix workflow syntax

* Use `secret.NAME` syntax
2025-01-08 10:59:37 +00:00

26 lines
566 B
YAML

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
steps:
- name: Call deployment webhook
env:
WEBHOOK_URL: ${{ secrets.AMPLIFY_DOCS_DEPLOY_HOOK }}
run: |
if curl -X POST --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
echo "Triggered successfully"
fi