set proper workflow error message

This commit is contained in:
aptalca
2022-12-12 21:05:27 -05:00
parent 036a356a7e
commit e727174beb
+3 -2
View File
@@ -18,8 +18,9 @@ jobs:
run: |
WRONG_PERM=$(find ./ -name run -not -perm -u=x,g=x,o=x && find ./ -name finish -not -perm -u=x,g=x,o=x)
if [ -n "${WRONG_PERM}" ]; then
echo "**** The following files are missing the executable bit: ****"
echo "${WRONG_PERM}"
for i in ${WRONG_PERM}; do
echo "::error file=${i},line=1,title=Missing Executable Bit::This file needs to be set as executable!"
done
exit 1
else
echo "**** All perms look good ****"