chore: Update OpenAPI Specs #8
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
| name: PR Preview Links | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| pull_request: | |
| types: [opened] | |
| jobs: | |
| preview-comment: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Encode branch name | |
| id: encode-branch | |
| run: | | |
| encoded=$(printf '%s' "${{ github.head_ref }}" | jq -sRr @uri) | |
| echo "branch=$encoded" >> $GITHUB_OUTPUT | |
| - name: Find existing comment | |
| uses: peter-evans/find-comment@v3 | |
| id: find-comment | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| comment-author: "github-actions[bot]" | |
| body-includes: "<!-- preview-links -->" | |
| - name: Create preview comment | |
| if: steps.find-comment.outputs.comment-id == '' | |
| uses: peter-evans/create-or-update-comment@v4 | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| <!-- preview-links --> | |
| ## Preview Links | |
| - [Backend API](https://clerk.com/docs/reference/${{ steps.encode-branch.outputs.branch }}/backend-api) | |
| - [Frontend API](https://clerk.com/docs/reference/${{ steps.encode-branch.outputs.branch }}/frontend-api) |