From 43f0fbf7aa3fd1fadb82433b260fdfbab601d673 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Tue, 8 Oct 2024 18:15:35 -0500 Subject: [PATCH] fix(ci): address ? docs preview failures --- .github/workflows/docs-preview.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 5c30fef..3250508 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -7,9 +7,7 @@ on: jobs: deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }} - runs-on: ubuntu-latest permissions: issues: write @@ -20,12 +18,10 @@ jobs: uses: actions/checkout@v4 - name: Download artifact - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v6 with: workflow_conclusion: success - run_id: ${{ github.event.workflow_run.id }} - path: docs-preview name: docs-preview @@ -42,21 +38,15 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: folder: docs-preview/docs/_build/html - - ssh-key: ${{ secrets.DOCS_PREVIEW_DEPLOY_KEY }} - + token: ${{ secrets.DOCS_PREVIEW_DEPLOY_KEY }} repository-name: litestar-org/type-lens-docs-preview clean: false - target-folder: ${{ env.PR_NUMBER }} - branch: gh-pages - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 env: - PR_NUMBER: ${{ env.PR_NUMBER }} - with: script: | const issue_number = process.env.PR_NUMBER