From a9de523991c0f9584abe3aebb1f78fae44a50787 Mon Sep 17 00:00:00 2001 From: Will Dean Date: Mon, 4 Nov 2024 15:35:33 -0500 Subject: [PATCH 1/4] add workflow from the README --- .github/workflows/broken-link-checker.yml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/broken-link-checker.yml diff --git a/.github/workflows/broken-link-checker.yml b/.github/workflows/broken-link-checker.yml new file mode 100644 index 000000000..f4b0fb8d2 --- /dev/null +++ b/.github/workflows/broken-link-checker.yml @@ -0,0 +1,24 @@ +name: Check for broken links +on: + workflow_dispatch: # allow manual trigger + push: + branches: + - main + schedule: + # run daily at 4 am + # * is a special character in YAML so you have to quote this string + - cron: '0 4 * * *' +jobs: + crawl_for_broken_links: + runs-on: ubuntu-latest + name: Broken-Links-Crawler + steps: + - name: Checking links + uses: ScholliYT/Broken-Links-Crawler-Action@v3 + with: + website_url: 'https://github.com/ScholliYT/Broken-Links-Crawler-Action' + exclude_url_prefix: 'mailto:,https://www.linkedin.com,https://linkedin.com' + verbose: 'true' + max_retry_time: 30 + max_retries: 5 + max_depth: 1 From 442878f977b76f187c1ff8350935aa79392d880a Mon Sep 17 00:00:00 2001 From: Will Dean Date: Mon, 4 Nov 2024 15:38:37 -0500 Subject: [PATCH 2/4] use our link instead :rocket: --- .github/workflows/broken-link-checker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/broken-link-checker.yml b/.github/workflows/broken-link-checker.yml index f4b0fb8d2..2a80ccc83 100644 --- a/.github/workflows/broken-link-checker.yml +++ b/.github/workflows/broken-link-checker.yml @@ -7,7 +7,7 @@ on: schedule: # run daily at 4 am # * is a special character in YAML so you have to quote this string - - cron: '0 4 * * *' + - cron: "0 4 * * *" jobs: crawl_for_broken_links: runs-on: ubuntu-latest @@ -16,9 +16,9 @@ jobs: - name: Checking links uses: ScholliYT/Broken-Links-Crawler-Action@v3 with: - website_url: 'https://github.com/ScholliYT/Broken-Links-Crawler-Action' - exclude_url_prefix: 'mailto:,https://www.linkedin.com,https://linkedin.com' - verbose: 'true' + website_url: "https://www.pymc-marketing.io/en/latest/" + exclude_url_prefix: "mailto:,https://www.linkedin.com,https://linkedin.com" + verbose: "true" max_retry_time: 30 max_retries: 5 max_depth: 1 From 30e696b1dd05dc665a2da60c861be9368170f102 Mon Sep 17 00:00:00 2001 From: Will Dean Date: Mon, 4 Nov 2024 17:59:18 -0500 Subject: [PATCH 3/4] fix youtube channel --- docs/source/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/index.md b/docs/source/index.md index bcd6d0bca..b806d7c25 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -159,7 +159,7 @@ Each of these models is tailored to different types of data and business scenari ### Customer Lifetime Value Modeling in Marine Industry -For more videos, webinars and resources, check out the [PyMC Labs YouTube channel](https://www.youtube.com/@PyMC-Labs). +For more videos, webinars and resources, check out the [PyMC Labs YouTube channel](https://www.youtube.com/PyMC-Labs). --- From 28b9c648598c16d284e83b00ca00174a1ab26231 Mon Sep 17 00:00:00 2001 From: Will Dean Date: Mon, 4 Nov 2024 19:17:33 -0500 Subject: [PATCH 4/4] separate out the commands --- .github/workflows/broken-link-checker.yml | 32 ++++++++++++++++++----- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/broken-link-checker.yml b/.github/workflows/broken-link-checker.yml index 2a80ccc83..b4363b789 100644 --- a/.github/workflows/broken-link-checker.yml +++ b/.github/workflows/broken-link-checker.yml @@ -1,4 +1,6 @@ +--- name: Check for broken links + on: workflow_dispatch: # allow manual trigger push: @@ -8,17 +10,35 @@ on: # run daily at 4 am # * is a special character in YAML so you have to quote this string - cron: "0 4 * * *" + jobs: - crawl_for_broken_links: + index: runs-on: ubuntu-latest - name: Broken-Links-Crawler steps: - name: Checking links uses: ScholliYT/Broken-Links-Crawler-Action@v3 with: - website_url: "https://www.pymc-marketing.io/en/latest/" - exclude_url_prefix: "mailto:,https://www.linkedin.com,https://linkedin.com" - verbose: "true" + website_url: "https://www.pymc-marketing.io/en/latest/index.html,https://www.pymc-marketing.io/en/latest/getting_started/index.html,https://www.pymc-marketing.io/en/latest/contributing/index.html,https://www.pymc-marketing.io/en/latest/guide/index.html" + # Twitter has a redirect which fails the check, I did a manual check for it and it was working + exclude_url_prefix: "mailto:,https://www.linkedin.com,https://linkedin.com,https://twitter.com" + verbose: "error" + connect_limit_per_host: 50 + resolve_before_filtering: "true" max_retry_time: 30 max_retries: 5 - max_depth: 1 + max_depth: 2 + docs: + runs-on: ubuntu-latest + steps: + - name: Checking links + uses: ScholliYT/Broken-Links-Crawler-Action@v3 + with: + website_url: "https://www.pymc-marketing.io/en/latest/notebooks/index.html" + # Twitter has a redirect which fails the check, I did a manual check for it and it was working + exclude_url_prefix: "mailto:,https://www.linkedin.com,https://linkedin.com,https://twitter.com" + verbose: "error" + connect_limit_per_host: 50 + resolve_before_filtering: "true" + max_retry_time: 30 + max_retries: 5 + max_depth: -1