Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

stream: docs and tutorial for xata clone stream #146

stream: docs and tutorial for xata clone stream

stream: docs and tutorial for xata clone stream #146

Workflow file for this run

name: Docs Preview
on:
pull_request_target: # Like pull_request but runs the 'base' workflow, safer and works with forks.
types: [opened, reopened, synchronize]
jobs:
docs-preview:
runs-on: ubuntu-latest
steps:
- name: Generate preview URL
id: generate_url
run: |
PR_OWNER=${{ github.event.pull_request.head.repo.owner.login }}
BRANCH=${{ github.event.pull_request.head.ref }}
PREVIEW_URL="https://xata.io/next/preview-path?path=/docs-preview/${PR_OWNER}:${BRANCH}/"
echo "preview_url=${PREVIEW_URL}" >> $GITHUB_OUTPUT
- name: Create or update docs preview comment
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
📖 **Docs Preview**
Preview URL: ${{ steps.generate_url.outputs.preview_url }}