-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into force_mode_arguments
- Loading branch information
Showing
24 changed files
with
229 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
IGNORE_FILES="" | ||
IGNORE_PATTERNS="" | ||
|
||
while getopts ":f:d:p:" opt; do | ||
case "${opt}" in | ||
f) | ||
IGNORE_FILES="${OPTARG}";; | ||
d) | ||
IGNORE_DIRS="${OPTARG}";; | ||
p) | ||
IGNORE_PATTERNS="${OPTARG}";; | ||
\?) | ||
echo "Invalid option -$OPTARG" | ||
exit;; | ||
esac | ||
done | ||
|
||
read -r -a ignore_files <<<"$IGNORE_FILES" | ||
read -r -a ignore_dirs <<<"$IGNORE_DIRS" | ||
read -r -a ignore_patterns <<<"$IGNORE_PATTERNS" | ||
|
||
IGNORE_FILES_ARG="" | ||
for item in "${ignore_files[@]}"; do | ||
IGNORE_FILES_ARG="$IGNORE_FILES_ARG --exclude=$item" | ||
done | ||
IGNORE_DIRS_ARG="" | ||
for item in "${ignore_dirs[@]}"; do | ||
IGNORE_DIRS_ARG="$IGNORE_DIRS_ARG --exclude-dir=$item" | ||
done | ||
|
||
#Find URLs in code: | ||
urls=$(grep -oP '(http|ftp|https):\/\/([a-zA-Z0-9_-]+(?:(?:\.[a-zA-Z0-9_-]+)+))([a-zA-Z0-9_.,@?^=%&:\/~+#-]*[a-zA-Z0-9_@?^=%&\/~+#-])?' -rI $IGNORE_FILES_ARG $IGNORE_DIRS_ARG) | ||
|
||
fail_counter=0 | ||
|
||
FAILED_LINKS=() | ||
for item in $urls; do | ||
# echo $item | ||
skip=0 | ||
for pattern in "${ignore_patterns[@]}"; do | ||
[[ "$item" =~ $pattern ]] && skip=1 | ||
done | ||
|
||
if [[ $skip == 1 ]]; then | ||
echo "SKIPPING $item" | ||
continue | ||
fi | ||
|
||
filename=$(echo "$item" | cut -d':' -f1) | ||
url=$(echo "$item" | cut -d':' -f2-) | ||
echo -n "Checking $url from file $filename" | ||
if ! curl --head --silent --fail "$url" 2>&1 > /dev/null; then | ||
echo -e " \033[0;31mNOT FOUND\033[32m\n" | ||
FAILED_LINKS+=("$url from file $filename") | ||
((fail_counter=fail_counter+1)) | ||
else | ||
printf " \033[32mok\033[0m\n" | ||
fi | ||
done | ||
|
||
echo "Failed files:" | ||
printf '%s\n' "${FAILED_LINKS[@]}" | ||
exit $fail_counter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Check Links | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check_links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check URLs | ||
run: | | ||
.github/helpers/check_urls.sh \ | ||
-d ".git build CMakeModules debian" \ | ||
-f "package.xml ursim_docker.rst" \ | ||
-p "vnc\.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>ur</name> | ||
<version>2.4.10</version> | ||
<version>2.4.12</version> | ||
<description>Metapackage for universal robots</description> | ||
<maintainer email="[email protected]">Felix Exner</maintainer> | ||
<maintainer email="[email protected]">Vincenzo Di Pentima</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>ur_calibration</name> | ||
<version>2.4.10</version> | ||
<version>2.4.12</version> | ||
<description>Package for extracting the factory calibration from a UR robot and change it such that it can be used by ur_description to gain a correct URDF</description> | ||
|
||
<maintainer email="[email protected]">Felix Exner</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>ur_controllers</name> | ||
<version>2.4.10</version> | ||
<version>2.4.12</version> | ||
<description>Provides controllers that use the speed scaling interface of Universal Robots.</description> | ||
|
||
<maintainer email="[email protected]">Felix Exner</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>ur_dashboard_msgs</name> | ||
<version>2.4.10</version> | ||
<version>2.4.12</version> | ||
<description>Messages around the UR Dashboard server.</description> | ||
|
||
<maintainer email="[email protected]">Felix Exner</maintainer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.