Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Update Coding_Style_Checker.yml #500

Update Coding_Style_Checker.yml

Update Coding_Style_Checker.yml #500

name: Coding Style Checker
env:
CODING_STYLE_LOG_FILE: coding-style-reports.log
on:
push:
pull_request:
workflow_dispatch:
jobs:
check_coding_style:
runs-on: ubuntu-latest
container: ghcr.io/epitech/coding-style-checker:latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Check the coding style
run: check.sh $(pwd) $(pwd)
timeout-minutes: 2
- name: Check the coding style report
run: |
if [ -s $CODING_STYLE_LOG_FILE ]; then
echo "::group::Annotation"
input=$CODING_STYLE_LOG_FILE
while IFS= read -r line
do
echo "::error:: $line"
done < "$input"
exit 1
fi