Added 42N3A, 42N3B, 42N3C and updated 42N39 #119
Workflow file for this run
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
| # copy this workflow into your repo | |
| name: "Documentation Teardown" | |
| on: | |
| pull_request_target: | |
| branches: | |
| - "dev" | |
| - "5.x" | |
| - "4.[0-9]" | |
| - "gqlstatus-errors" | |
| types: | |
| - closed | |
| jobs: | |
| teardown-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-node@v4 | |
| 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@331f8f5b4215f0445d3c07b4967662a32a2d3e31 #v2.9.0 | |
| 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 }} | |