docs: remove var reference that isn't used in terraform provider (#50… #8199
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |