chore: remove aa-sdk imports from v5 #2524
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: Generate Fern Docs Preview | |
on: | |
pull_request: | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
pull-requests: write | |
steps: | |
- name: Checkout aa-sdk | |
uses: actions/checkout@v4 | |
- name: Setup Docs | |
uses: ./.github/actions/setup-docs | |
- name: Set Build Comment to In Progress | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const workspace = process.env.GITHUB_WORKSPACE; | |
const { updatePreviewComment } = await import(`${workspace}/docs-site/scripts/preview-comment.js`); | |
await updatePreviewComment({ | |
github, | |
context, | |
status: 'building', | |
}); | |
- name: Generate Fern Docs Preview | |
id: preview | |
uses: ./.github/actions/publish-fern | |
with: | |
github-token: ${{ github.token }} | |
fern-token: ${{ secrets.FERN_TOKEN }} | |
environment: docs-preview | |
ref: ${{ github.head_ref }} | |
preview: "true" | |
- name: Comment Preview URL in PR | |
uses: actions/github-script@v7 | |
if: always() | |
with: | |
script: | | |
const workspace = process.env.GITHUB_WORKSPACE; | |
const { updatePreviewComment } = await import(`${workspace}/docs-site/scripts/preview-comment.js`); | |
await updatePreviewComment({ | |
github, | |
context, | |
previewUrl: '${{ steps.preview.outputs.url }}', | |
status: '${{ steps.preview.outcome }}', | |
}); |