diff --git a/.github/copy-pr-bot.yaml b/.github/copy-pr-bot.yaml new file mode 100644 index 000000000..c61a81b13 --- /dev/null +++ b/.github/copy-pr-bot.yaml @@ -0,0 +1,3 @@ +# https://docs.gha-runners.nvidia.com/apps/copy-pr-bot/#configuration + +enabled: true diff --git a/.github/workflows/fern-docs-preview-copy.yml b/.github/workflows/fern-docs-preview-copy.yml new file mode 100644 index 000000000..0c1820dc8 --- /dev/null +++ b/.github/workflows/fern-docs-preview-copy.yml @@ -0,0 +1,27 @@ +name: Preview Fern Docs + +on: + push: + branches: + - 'pull-request/[0-9]+' + paths: + - 'fern/**' + +concurrency: + group: fern-docs-preview-copy-${{ github.ref }} + cancel-in-progress: true + +permissions: {} + +jobs: + preview: + permissions: + contents: read + id-token: write + pull-requests: write + uses: NVIDIA/docs-builder/.github/workflows/_fern_docs_preview_copy.yml@main # zizmor: ignore[unpinned-uses] -- Fern OIDC trust pins refs/heads/main + with: + fern-directory: fern + secrets: + DOCS_FERN_AWS_ROLE_TO_ASSUME: ${{ secrets.DOCS_FERN_AWS_ROLE_TO_ASSUME }} + DOCS_FERN_SECRET_ID: ${{ secrets.DOCS_FERN_SECRET_ID }} diff --git a/.github/workflows/fern-docs-preview-delete-copy.yml b/.github/workflows/fern-docs-preview-delete-copy.yml new file mode 100644 index 000000000..11bef1adc --- /dev/null +++ b/.github/workflows/fern-docs-preview-delete-copy.yml @@ -0,0 +1,21 @@ +name: "Preview Fern Docs: Delete" + +on: # zizmor: ignore[dangerous-triggers] -- no PR code is checked out or run + pull_request_target: + types: [closed] + paths: + - 'fern/**' + +permissions: {} + +jobs: + delete: + permissions: + contents: read + id-token: write + uses: NVIDIA/docs-builder/.github/workflows/_fern_docs_preview_delete_copy.yml@main # zizmor: ignore[unpinned-uses] -- Fern OIDC trust pins refs/heads/main + with: + fern-directory: fern + secrets: + DOCS_FERN_AWS_ROLE_TO_ASSUME: ${{ secrets.DOCS_FERN_AWS_ROLE_TO_ASSUME }} + DOCS_FERN_SECRET_ID: ${{ secrets.DOCS_FERN_SECRET_ID }}