From 986cb893a2685a93eaa5f4f6628e11cf20ee28d0 Mon Sep 17 00:00:00 2001 From: AG <98327736+ggold7046@users.noreply.github.com> Date: Sat, 11 Nov 2023 20:48:19 +0530 Subject: [PATCH 1/2] Create create-issue.yml This is a GIthub Action that creates a new issue (and delete the old one) reporting all the errors and label and Docs and Good First Issue for a broken link. --- .github/workflows/create-issue.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/create-issue.yml diff --git a/.github/workflows/create-issue.yml b/.github/workflows/create-issue.yml new file mode 100644 index 0000000000000..62c1e07ce16b0 --- /dev/null +++ b/.github/workflows/create-issue.yml @@ -0,0 +1,32 @@ +name: Create Issue +on: + schedule: + # Run monthly on the 1st day of the month + - cron: '0 0 1 * *' +jobs: + linkcheck: + runs-on: ubuntu-latest + defaults: + run: + shell: bash -el {0} + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Conda + uses: ./.github/actions/setup-conda + + - name: Build Pandas + uses: ./.github/actions/build_pandas + - name: Run linkcheck script + working-directory: ./doc + run: | + set -o pipefail + python make.py linkcheck | tee linkcheck.txt + - name: Display broken links + if: failure() + working-directory: ./doc + run: grep broken linkcheck.txt From 0f50f93e3365e227d32f89f1f5bdaed70d5a7c52 Mon Sep 17 00:00:00 2001 From: AG <98327736+ggold7046@users.noreply.github.com> Date: Sat, 11 Nov 2023 21:05:44 +0530 Subject: [PATCH 2/2] Update create-issue.yml --- .github/workflows/create-issue.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/create-issue.yml b/.github/workflows/create-issue.yml index 62c1e07ce16b0..a3d68fdbe2664 100644 --- a/.github/workflows/create-issue.yml +++ b/.github/workflows/create-issue.yml @@ -21,12 +21,5 @@ jobs: - name: Build Pandas uses: ./.github/actions/build_pandas - - name: Run linkcheck script - working-directory: ./doc - run: | - set -o pipefail - python make.py linkcheck | tee linkcheck.txt - - name: Display broken links - if: failure() - working-directory: ./doc - run: grep broken linkcheck.txt + - name: Run create-issue script + working-directory: ./doc