2023-03-16 12:07:06 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-03-29 08:13:26 -04:00
|
|
|
###### script header ######
|
|
|
|
|
2023-03-16 12:07:06 -04:00
|
|
|
lib=$(realpath @@BASE_LIB@@) || exit 1
|
2023-03-29 08:13:26 -04:00
|
|
|
stat "${lib}" >> /dev/null || exit 1
|
2023-03-16 12:07:06 -04:00
|
|
|
|
|
|
|
# shellcheck source=../sh/lib.bash
|
|
|
|
if ! source "${lib}"; then
|
|
|
|
echo "Error: could not find import"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-03-29 08:13:26 -04:00
|
|
|
actionlint=$(realpath @@ACTIONLINT@@)
|
|
|
|
stat "${actionlint}" >> /dev/null
|
|
|
|
shellcheck=$(realpath @@SHELLCHECK@@ || echo) # might not exist
|
|
|
|
|
|
|
|
cd "${BUILD_WORKSPACE_DIRECTORY}"
|
|
|
|
|
|
|
|
###### script body ######
|
2023-03-16 12:07:06 -04:00
|
|
|
|
|
|
|
${actionlint} -shellcheck="${shellcheck}"
|