diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a141a4c4c..2ebf9bfc2 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -36,7 +36,7 @@ jobs: with: name: html-docs path: docs/build/html/ - retention-days: 10 + retention-days: 1 if-no-files-found: error pages-deploy: diff --git a/.github/workflows/pr_ci.yml b/.github/workflows/pr_ci.yml index 431bf1055..711524e3e 100644 --- a/.github/workflows/pr_ci.yml +++ b/.github/workflows/pr_ci.yml @@ -83,6 +83,7 @@ jobs: run: pre-commit run --show-diff-on-failure --color=always --all-files build-docs: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3