2024-12-31 14:33:07 +13:00
name : Check the Supported Dive Computer Lists
on :
push :
branches :
- master
paths :
2025-01-01 18:03:43 +13:00
- libdivecomputer/src/descriptor.c
2024-12-31 14:33:07 +13:00
- SupportedDivecomputers.txt
- SupportedDivecomputers.html
- scripts
pull_request :
branches :
- master
paths :
2025-01-01 18:03:43 +13:00
- libdivecomputer/src/descriptor.c
2024-12-31 14:33:07 +13:00
- SupportedDivecomputers.txt
- SupportedDivecomputers.html
- scripts
jobs :
check :
runs-on : ubuntu-24.04
steps :
2025-01-01 18:14:13 +13:00
- name : checkout sources
uses : actions/checkout@v4
with :
fetch-depth : 0
submodules : recursive
2024-12-31 14:33:07 +13:00
- name : Check the Supported Dive Computer Lists
2025-01-01 18:34:15 +13:00
shell : bash {0}
2024-12-31 14:33:07 +13:00
run : |
perl scripts/parse-descriptor.pl SupportedDivecomputers_new.txt
diff -u SupportedDivecomputers.txt SupportedDivecomputers_new.txt
TXT_EXIT_CODE=$?
perl scripts/parse-descriptor.pl SupportedDivecomputers_new.html
diff -u SupportedDivecomputers.html SupportedDivecomputers_new.html
if [ $? -ne 0 -o $TXT_EXIT_CODE -ne 0 ] ; then
2025-01-01 18:40:29 +13:00
echo "The list of supported dive computers in libdivecomputer has changed. Please run \`scripts/update-supported-divecomputer-lists.sh\` and commit the resulting changes."
2024-12-31 14:33:07 +13:00
exit 1
fi