Skip to content

Commit

Permalink
Update coding_convention.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-bingocth authored Sep 25, 2024
1 parent 3645a1f commit 76f2fa3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/coding_convention.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,13 @@ jobs:
run: |
git config diff.renameLimit 999999
git fetch origin
touch CodingConventionResult.log
diff_files=$(git diff --name-only origin/gen-firmware-on-host-runner origin/update-source-code-lib-iec60730)
echo "Changed files:"
echp "$diff_files"
if [ -n "$diff_files" ]; then
echo "$diff_files" | xargs -n 1 pre-commit run --file | tee log.txt
else
echo "No files changed between branches"
fi
git diff --name-only origin/gen-firmware-on-host-runner origin/update-source-code-lib-iec60730 | xargs pre-commit run --files > CodingConventionTool.log
- name: Upload Result
if: always()
uses: actions/[email protected]
with:
name: CodingConventionResult.txt
path: log.txt
name: CodingConventionTool.txt
path: CodingConventionTool.txt
warn: Output a warning but do not fail the action
retention-days: 90

0 comments on commit 76f2fa3

Please sign in to comment.