Skip to content

Commit

Permalink
✅ Automate URL check
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 18, 2024
1 parent 9342dae commit b3d9928
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/check-urls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# check-urls.yml
# Check (most) distinct URLs in the project for reachability
#

name: Check URLs

on:
schedule:
- cron: '0 4 * * 2' # Tues 4:00 AM UTC

jobs:
test_builds:
name: Build Test
if: github.repository == 'MarlinFirmware/Marlin'

runs-on: ubuntu-latest

steps:

- name: Check out bugfix-2.1.x
uses: actions/checkout@v4
with:
ref: bugfix-2.1.x

- name: Check All URLs
# Exit with an error to notify fail on URL tests
run: |
# Inline URL Check Script
UTMP=`mktemp`
grep -R -E "https?:\/\/[^ \"''\(\)\<\>]+" . | grep -v "Binary file" | sed -E 's/.*(https?:\/\/[^ \"''()<>]+).*/\1/' | sort -u -R >"$UTMP"
ERR404=
while IFS= read -r URL
do
echo -n "Checking ${URL} ... "
if curl -s --head --request GET ${URL} | grep "404 Not Found" > /dev/null
then
ERR404=1
echo "[Error 404]" ; #break
else
echo "[ OK ]"
fi
done <"$UTMP"
[[ -z $ERR404 ]] || { echo "One or more URLs could not be reached." ; exit 1 ; }
exit 0
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_RADDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

/**
* RADDS Extension Board V2 / V3
* http://doku.radds.org/dokumentation/extension-board
* https://web.archive.org/web/20210627142010/http://doku.radds.org/dokumentation/extension-board/
*/
//#define RADDS_EXTENSION 2
#if RADDS_EXTENSION >= 2
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/sam/pins_RURAMPS4D_11.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@

#elif ENABLED(SPARK_FULL_GRAPHICS)

//http://doku.radds.org/dokumentation/other-electronics/sparklcd/
// https://sparklab-shop.de/elektronik/40/sparklcd-adapter
#error "Oops! SPARK_FULL_GRAPHICS not supported with RURAMPS4D."
//#define LCD_PINS_D4 29 //?
//#define LCD_PINS_EN 27 //?
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/sanguino/pins_ANET_10.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@
* ====================================================================
*
* Anet V1.0 controller | ZONESTAR_LCD | ANET_FULL_ | RepRapDiscount Full | Thingiverse RepRap wiring
* physical logical alt | | GRAPHICS_LCD | Graphics Display Wiring | https://www.thingiverse
* pin pin functions | | | | .com/thing:2103748
* physical logical alt | | GRAPHICS_LCD | Graphics Display Wiring | https://www.thingiverse.com/thing:2103748
* pin pin functions | | | |
*--------------------------------------------------------------------------------------------------------------------
* ANET-J3.1 8 *** | N/A | J3_TX *** | |
* ANET-J3.2 9 *** | N/A | J3_RX *** | |
Expand Down

0 comments on commit b3d9928

Please sign in to comment.