fix(docs): sanitize emoji shortcodes in generated SDK docs #95
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: Docs navigation | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "docs/**" | |
| - "scripts/sanitize-docs-emoji.sh" | |
| - "scripts/gen-docs-nav.sh" | |
| - ".github/workflows/docs-nav.yaml" | |
| jobs: | |
| gen-docs-nav: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # jq is preinstalled on GitHub-hosted ubuntu runners. | |
| - name: Sanitize generated docs emoji | |
| run: scripts/sanitize-docs-emoji.sh | |
| - name: Regenerate docs navigation | |
| run: scripts/gen-docs-nav.sh | |
| - name: Auto-commit docs.json navigation | |
| uses: int128/update-generated-files-action@v2 | |
| with: | |
| commit-message: "Chore: regenerate docs navigation" |