Skip to content

Update the procedure example to show the equivalent of the integratio… #185

Update the procedure example to show the equivalent of the integratio…

Update the procedure example to show the equivalent of the integratio… #185

Workflow file for this run

# copy this workflow into your repo

Check warning on line 1 in .github/workflows/docs-teardown.yml

View workflow run for this annotation

GitHub Actions / Documentation Teardown

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
name: "Documentation Teardown"
permissions:
contents: read
pull-requests: write
on:
pull_request_target:
branches:
- main
- dev
types:
- closed
jobs:
teardown-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f #v6
with:
node-version: lts/*
- id: get-deploy-url
env:
ORG: ${{ github.event.repository.owner.login }}
REPO: ${{ github.event.repository.name }}
DEPLOYID: ${{ github.event.pull_request.number }}
run: |
deployurl=$ORG-$REPO-$DEPLOYID.surge.sh
echo "deploy-url=$deployurl" >> $GITHUB_OUTPUT
- name: Teardown documentation
shell: bash
env:
SURGE_TOKEN: "${{ secrets.DOCS_SURGE_TOKEN }}"
DEPLOY_URL: ${{ steps.get-deploy-url.outputs.deploy-url }}
run: |
npm install -g surge
surge teardown $DEPLOY_URL --token "$SURGE_TOKEN"
- name: Comment on PR
uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 #v3
with:
number: ${{ github.event.pull_request.number }}
header: docs-pr-changes
message: |
Thanks for the documentation updates.
The preview documentation has now been torn down - reopening this PR will republish it.
GITHUB_TOKEN: ${{ secrets.DOCS_PR_COMMENT_TOKEN }}