From 9ad823b63e5e09e56a9a08178caf8dd7e38e084c Mon Sep 17 00:00:00 2001 From: felix Date: Tue, 19 Nov 2024 14:50:28 +0100 Subject: [PATCH] [CI] Fix PR labeler job & Rollback doc deploy deps --- .github/workflows/docs.yml | 5 ++--- .github/workflows/pr-labels.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3b0f46e82..ca997caf5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,11 +25,10 @@ jobs: path: ~/.cache/pip key: ${{ runner.os }}-pkg-deps-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-docs - name: Install dependencies - # Earlier documentation (before v10) requires TensorFlow - later it's built from the PyTorch code - so we need to install both (dev) - # Additional the dev specifier includes all [docs] dependencies run: | python -m pip install --upgrade pip - pip install -e .[dev] + pip install -e .[tf,viz,html] --upgrade + pip install -e .[docs] - name: Build documentation run: cd docs && bash build.sh diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index 9e6d26cf5..cf1e264eb 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -26,4 +26,4 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const { issue: { number: issue_number }, repo: { owner, repo } } = context; - github.issues.createComment({ issue_number, owner, repo, body: 'Hey ${{ steps.commit.outputs.merger }} 👋\nYou merged this PR, but it is not correctly labeled. The list of valid labels is available at https://github.com/mindee/doctr/blob/main/.github/verify_pr_labels.py' }); + github.rest.issues.createComment({ issue_number, owner, repo, body: 'Hey ${{ steps.commit.outputs.merger }} 👋\nYou merged this PR, but it is not correctly labeled. The list of valid labels is available at https://github.com/mindee/doctr/blob/main/.github/verify_pr_labels.py' });