From 9ad0d326f990738c98eeaac35b343aad492520ed Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 4 Aug 2023 16:54:11 +0100 Subject: [PATCH] ci: enable codegen errors job (#7961) --- .github/workflows/ci.yml | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80c3241ee..329835b80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -230,24 +230,23 @@ jobs: - name: Remove docs translations except for English and Korean run: find smoke/docs/src/content/docs ! -name 'en' ! -name 'ko' -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} + -# TODO: enable when the script is updated -# - name: Check if docs changed -# id: changes -# uses: dorny/paths-filter@v2 -# with: -# filters: | -# docs: -# - 'packages/integrations/*/README.md' -# - 'packages/astro/src/@types/astro.ts' -# - 'packages/astro/src/core/errors/errors-data.ts' -# -# - name: Build autogenerated docs pages from current astro branch -# if: ${{ steps.changes.outputs.docs == 'true' }} -# run: cd smoke/docs && pnpm docgen && pnpm docgen:errors && pnpm docgen:integrations -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# SOURCE_REPO: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }} -# SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }} + - name: Check if docs changed + id: changes + uses: dorny/paths-filter@v2 + with: + filters: | + docs: + - 'packages/integrations/*/README.md' + - 'packages/astro/src/@types/astro.ts' + - 'packages/astro/src/core/errors/errors-data.ts' + + - name: Build autogenerated docs pages from current astro branch + if: ${{ steps.changes.outputs.docs == 'true' }} + run: cd smoke/docs && pnpm docgen && pnpm docgen:errors && pnpm docgen:integrations + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SOURCE_REPO: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }} + SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }} - name: Test run: pnpm run test:smoke