From 47e000e15161be1045b239ec4f493d043e09b029 Mon Sep 17 00:00:00 2001 From: "A.Arnold" Date: Fri, 14 Mar 2025 14:29:09 +0000 Subject: [PATCH 1/3] Adding a GitHub Action to check for broken links Signed-off-by: A.Arnold --- .github/workflows/ISSUE_TEMPLATE.md | 13 +++++++++++++ .github/workflows/broken-link-check.yml | 16 ++++++++++++++++ .github/workflows/issue-on-push.yml | 13 +++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .github/workflows/ISSUE_TEMPLATE.md create mode 100644 .github/workflows/broken-link-check.yml create mode 100644 .github/workflows/issue-on-push.yml diff --git a/.github/workflows/ISSUE_TEMPLATE.md b/.github/workflows/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..f330e03b --- /dev/null +++ b/.github/workflows/ISSUE_TEMPLATE.md @@ -0,0 +1,13 @@ +--- +title: Website Contains Broken Links +labels: '' +assignees: 'anarnold97' +--- + +## Broken Links Detected + +Broken Link Checker found broken links: + +[View Results](https://github.com/migtools/mta-documentation/actions/workflows/check-broken-links.yml) + +_Use search filter `─BROKEN─` to highlight failures_ \ No newline at end of file diff --git a/.github/workflows/broken-link-check.yml b/.github/workflows/broken-link-check.yml new file mode 100644 index 00000000..3d618dc8 --- /dev/null +++ b/.github/workflows/broken-link-check.yml @@ -0,0 +1,16 @@ +on: + schedule: + - cron: '12 1 * * 5' # run monthly + repository_dispatch: # run manually + types: [check-link] + # push: + # ... + +name: Broken Link Check +jobs: + check: + name: Broken Link Check + runs-on: ubuntu-latest + steps: + - name: Broken Link Check + uses: technote-space/broken-link-checker-action@v2 \ No newline at end of file diff --git a/.github/workflows/issue-on-push.yml b/.github/workflows/issue-on-push.yml new file mode 100644 index 00000000..7d327e88 --- /dev/null +++ b/.github/workflows/issue-on-push.yml @@ -0,0 +1,13 @@ +on: [push] +name: Create an issue on push +permissions: + contents: read + issues: write +jobs: + stuff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: JasonEtco/create-an-issue@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 8736ac21e20431afb01fbfeb13e23b5c7ccfb5d2 Mon Sep 17 00:00:00 2001 From: Andy Arnold Date: Wed, 26 Mar 2025 23:38:00 +0000 Subject: [PATCH 2/3] Delete .github/workflows/ISSUE_TEMPLATE.md --- .github/workflows/ISSUE_TEMPLATE.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/ISSUE_TEMPLATE.md diff --git a/.github/workflows/ISSUE_TEMPLATE.md b/.github/workflows/ISSUE_TEMPLATE.md deleted file mode 100644 index f330e03b..00000000 --- a/.github/workflows/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Website Contains Broken Links -labels: '' -assignees: 'anarnold97' ---- - -## Broken Links Detected - -Broken Link Checker found broken links: - -[View Results](https://github.com/migtools/mta-documentation/actions/workflows/check-broken-links.yml) - -_Use search filter `─BROKEN─` to highlight failures_ \ No newline at end of file From 7a78db490ef0ab366f733f3b306a6f518dc34eff Mon Sep 17 00:00:00 2001 From: Andy Arnold Date: Wed, 26 Mar 2025 23:38:19 +0000 Subject: [PATCH 3/3] Delete .github/workflows/issue-on-push.yml --- .github/workflows/issue-on-push.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/issue-on-push.yml diff --git a/.github/workflows/issue-on-push.yml b/.github/workflows/issue-on-push.yml deleted file mode 100644 index 7d327e88..00000000 --- a/.github/workflows/issue-on-push.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: [push] -name: Create an issue on push -permissions: - contents: read - issues: write -jobs: - stuff: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: JasonEtco/create-an-issue@v2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file