From a9d3cd9c23f738a5e90ccec30a6d680e9380d8aa Mon Sep 17 00:00:00 2001 From: Andreas Taylor Date: Mon, 30 Sep 2024 12:09:59 -0500 Subject: [PATCH] Switch to lychee for link checks --- .github/workflows/CheckMarkdownLinks.yml | 24 ----------------- .github/workflows/check-links.yml | 33 ++++++++++++++++++++++++ .github/workflows/mlc_config.json | 3 --- README.md | 2 +- 4 files changed, 34 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/CheckMarkdownLinks.yml create mode 100644 .github/workflows/check-links.yml delete mode 100644 .github/workflows/mlc_config.json diff --git a/.github/workflows/CheckMarkdownLinks.yml b/.github/workflows/CheckMarkdownLinks.yml deleted file mode 100644 index 1abbf82..0000000 --- a/.github/workflows/CheckMarkdownLinks.yml +++ /dev/null @@ -1,24 +0,0 @@ -# GitHub Action from: https://github.com/gaurav-nelson/github-action-markdown-link-check -# Uses code from: https://github.com/tcort/markdown-link-check -name: Check Markdown Links - -on: - push: - schedule: - # Run monthly - # GitHub actions uses UTC for time zone - # crontab format: minute hour day-of-month month day-of-week - - cron: "43 4 4 * *" - workflow_dispatch: - inputs: - message: - description: Message to display in job summary - required: false - type: string - -jobs: - markdown-link-check: - name: call-markdown-link-check-workflow - uses: Andy4495/.github/.github/workflows/CheckMarkdownLinks.yml@main - with: - message: ${{ inputs.message }} \ No newline at end of file diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..6a29c68 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,33 @@ +# https://github.com/lycheeverse/lychee-action +# https://github.com/lycheeverse/lychee +name: Check Links + +on: + push: + schedule: + # Run monthly + # GitHub actions uses UTC for time zone + # crontab format: minute hour day-of-month month day-of-week + - cron: "43 4 4 * *" + workflow_dispatch: + inputs: + message: + description: Message to display in job summary + required: false + type: string + override-args: + description: Override default arguments (see https://github.com/lycheeverse/lychee#commandline-parameters) + required: false + type: string + +jobs: + link-checker: + name: Call Link Checker + uses: Andy4495/.github/.github/workflows/check-links.yml@main + with: + message: ${{ inputs.message }} + override-args: ${{ inputs.override-args }} + # Use the following to exclude certain URLs from the check. Need to include "--exclude" in the definition. + # For example, --exclude '43oh.com' + exclude: + \ No newline at end of file diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json deleted file mode 100644 index f18b248..0000000 --- a/.github/workflows/mlc_config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "aliveStatusCodes": [429, 403, 200] -} diff --git a/README.md b/README.md index 3b60366..7a6a718 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # TI-30 Keypad Interface -[![Arduino Compile Sketches](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/arduino-compile-sketches.yml/badge.svg)](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/arduino-compile-sketches.yml) [![Check Markdown Links](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/CheckMarkdownLinks.yml/badge.svg)](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/CheckMarkdownLinks.yml) +[![Arduino Compile Sketches](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/arduino-compile-sketches.yml/badge.svg)](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/arduino-compile-sketches.yml) [![Check Markdown Links](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/check-links.yml/badge.svg)](https://github.com/Andy4495/TI-30-Keypad-Interface/actions/workflows/check-links.yml) Sketch to simulate the keypad of an old [TI-30 calculator][1] (original model, with the bubble-lens LEDs).