From 75218de62a51cc7b4b5a2d6187b2d44abf483076 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Thu, 21 Jul 2022 22:25:59 +0200 Subject: [PATCH] Annotate exec bit --- .github/workflows/check_samples.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_samples.yml b/.github/workflows/check_samples.yml index 4c508dd..1d5a3e7 100644 --- a/.github/workflows/check_samples.yml +++ b/.github/workflows/check_samples.yml @@ -29,8 +29,9 @@ jobs: EXECUTABLE_BIT=$(find . -not -path '*/\.*' -type f -executable) EXECUTABLE_BIT_COUNT=$(echo "${EXECUTABLE_BIT}" | wc -w) if (( EXECUTABLE_BIT_COUNT > 0 )); then - echo "The following files have executable permissions (not allowed):" - echo "${EXECUTABLE_BIT}" + for i in ${EXECUTABLE_BIT}; do + echo "::error file=${i},line=1,title=Executable Bit::This file is set as exectutable, which is not allowed" + done exit 1 fi