From ab92a8bc4c2670ca47183c232037d8e2cfceb961 Mon Sep 17 00:00:00 2001 From: "Emilio M. Bruna" Date: Fri, 30 Aug 2024 12:01:48 -0400 Subject: [PATCH] Add files via upload --- .../ISSUE_TEMPLATE/workflows/check-links.md | 13 ++++++++++ .../ISSUE_TEMPLATE/workflows/check-links.yml | 26 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/workflows/check-links.md create mode 100644 .github/ISSUE_TEMPLATE/workflows/check-links.yml diff --git a/.github/ISSUE_TEMPLATE/workflows/check-links.md b/.github/ISSUE_TEMPLATE/workflows/check-links.md new file mode 100644 index 0000000..dad9c25 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/workflows/check-links.md @@ -0,0 +1,13 @@ +--- +title: Website Contains Broken Links +labels: '' +assignees: '' +--- + +## Broken Links Detected + +Broken Link Checker found broken links on https://andrewwegner.com + +[View Results](https://github.com/AWegnerGitHub/awegnergithub.github.io-content/actions/workflows/check-broken-links.yml) + +_Use search filter `─BROKEN─` to highlight failures_ \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/workflows/check-links.yml b/.github/ISSUE_TEMPLATE/workflows/check-links.yml new file mode 100644 index 0000000..a9cfac6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/workflows/check-links.yml @@ -0,0 +1,26 @@ +name: Broken Links Checker +on: + schedule: + - cron: '12 1 * * 5' + workflow_dispatch: +env: + WEBSITE_URL: "https://brunalab.github.io/apps_for_fieldwork/" + ISSUE_TEMPLATE: ".github/workflows/check-links.md" + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - name: Run Broken Links Checker + run: npx broken-link-checker $WEBSITE_URL --ordered --recursive --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" --exclude linkedin --exclude "udemy" --exclude "ude.my" --exclude "eia.gov" --exclude "backpack.tf" --exclude hlsw --exclude dell --exclude supermicro --exclude mysql + + - uses: actions/checkout@v3 + if: failure() + + - uses: JasonEtco/create-an-issue@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: ${{ env.ISSUE_TEMPLATE }} + if: failure() \ No newline at end of file