-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3645a1f
commit 76f2fa3
Showing
1 changed file
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |