py script & action: Update used repos version

* Updated the versions for repos and this solved the deprecated command
   issue
 * Changed the end message for when the guideline is not followed

Signed-off-by: Iulia Moldovan <Iulia.Moldovan@analog.com>
main
Iulia Moldovan 2023-05-08 15:55:32 +03:00 committed by imoldovan
parent 5776511dd7
commit e6ac64c532
2 changed files with 5 additions and 4 deletions

View File

@ -1127,7 +1127,7 @@ else:
print (file)
if (not guideline_ok):
print("\nGuideline not respected\n")
print("\nGUIDELINE RULES ARE NOT FOLLOWED\n")
sys.exit(1)
else:
sys.exit(0)

View File

@ -22,15 +22,16 @@ jobs:
uses: actions/checkout@v3
# repository that retrieves all the changed files
- name: Load get-changed-files repo
uses: Ana06/get-changed-files@v1.2
uses: Ana06/get-changed-files@v2.2.0
id: changed_files
with:
format: space-delimited
- name: Print changed files
run: |
echo "Changed files:"
echo "::group::Click here to see the Changed files"
echo "${{ steps.changed_files.outputs.all }}"
- name: Execute py script for guideline check
echo "::endgroup::"
- name: Executing Py script for guideline check
id: execution
# -p flag means that files will be specified with their relative path
run: |